diff options
author | Tharre <tharre3@gmail.com> | 2015-05-25 17:18:31 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2015-05-25 17:18:31 +0200 |
commit | 79f3225ea4aea93ea963b8b41ecd518b9fd20eea (patch) | |
tree | 0849eeb8b080f06810a2aed59a80a9468c6b92d8 /tests | |
parent | c7712dfd7bf2734e339096d3274f5b0bef2b4335 (diff) | |
download | redo-79f3225ea4aea93ea963b8b41ecd518b9fd20eea.tar.gz redo-79f3225ea4aea93ea963b8b41ecd518b9fd20eea.tar.xz redo-79f3225ea4aea93ea963b8b41ecd518b9fd20eea.zip |
Fix some sh compatibility problems
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cwd/all.do | 2 | ||||
-rw-r--r-- | 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 } |