From 79f3225ea4aea93ea963b8b41ecd518b9fd20eea Mon Sep 17 00:00:00 2001 From: Tharre Date: Mon, 25 May 2015 17:18:31 +0200 Subject: Fix some sh compatibility problems --- tests/cwd/all.do | 2 +- tests/include.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/cwd/all.do b/tests/cwd/all.do index 866a9ca..106a721 100644 --- a/tests/cwd/all.do +++ b/tests/cwd/all.do @@ -5,5 +5,5 @@ rm -rf a d/b d/d/c redo-ifchange a assert "cwd" << ! -[ "$(cat a)" == "abc" ] +[ "$(cat a)" = "abc" ] ! diff --git a/tests/include.sh b/tests/include.sh index 7052585..317ab52 100644 --- a/tests/include.sh +++ b/tests/include.sh @@ -1,7 +1,9 @@ assert() { - if source /dev/stdin; then + set +e + if . /dev/stdin; then echo "PASS: $1" >&2 else echo "FAIL: $1" >&2 fi + set -e } -- cgit v1.2.3-70-g09d2