diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2021-08-06 16:32:41 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2021-08-06 16:32:41 +0100 |
commit | d6635e2cab0ad53151b317480b80a7ddd58047bc (patch) | |
tree | b400f786313d9d4088a9ea12e1901351cd5cb282 | |
parent | 99a757068207bb9c745dd913a30ba5a560ceb998 (diff) | |
download | subplot-d6635e2cab0ad53151b317480b80a7ddd58047bc.tar.gz |
bash: Fix asserts preventing cleanup
-rw-r--r-- | share/bash/template/assert.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/bash/template/assert.sh b/share/bash/template/assert.sh index 43bb11b..17aa71e 100644 --- a/share/bash/template/assert.sh +++ b/share/bash/template/assert.sh @@ -5,7 +5,7 @@ assert_eq() { if ! diff -u <(echo "$1") <(echo "$2") then echo "expected values to be identical, but they're not" - exit 1 + return 1 fi } @@ -14,6 +14,6 @@ assert_contains() { if ! echo "$1" | grep -F "$2" > /dev/null then echo "expected first value to contain second value" - exit 1 + return 1 fi } |