diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-08-07 08:19:36 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-08-07 08:19:36 +0000 |
commit | a0d6d7571225a02c5dab3b73a76f0e90ec3ea641 (patch) | |
tree | b400f786313d9d4088a9ea12e1901351cd5cb282 | |
parent | 99a757068207bb9c745dd913a30ba5a560ceb998 (diff) | |
parent | d6635e2cab0ad53151b317480b80a7ddd58047bc (diff) | |
download | subplot-a0d6d7571225a02c5dab3b73a76f0e90ec3ea641.tar.gz |
Merge branch 'bash-assert' into 'main'
bash: Fix asserts preventing cleanup
See merge request subplot/subplot!199
-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 } |