summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2021-08-06 16:32:41 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2021-08-06 16:32:41 +0100
commitd6635e2cab0ad53151b317480b80a7ddd58047bc (patch)
treeb400f786313d9d4088a9ea12e1901351cd5cb282 /share
parent99a757068207bb9c745dd913a30ba5a560ceb998 (diff)
downloadsubplot-d6635e2cab0ad53151b317480b80a7ddd58047bc.tar.gz
bash: Fix asserts preventing cleanup
Diffstat (limited to 'share')
-rw-r--r--share/bash/template/assert.sh4
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
}