From 1c3372e3a503961d66251124f6dce26f9745bfbe Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Mon, 23 May 2022 12:29:51 -0400 Subject: [PATCH] cthon.zsh: Don't return 0 if one of the tests fails Signed-off-by: Anna Schumaker --- cthon.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cthon.zsh b/cthon.zsh index 84c58cf..1170ddc 100755 --- a/cthon.zsh +++ b/cthon.zsh @@ -41,6 +41,7 @@ for vers in $VERSION; do ARGS+=("--version $vers") done +ret=0 set +e date | python -u $COLOR for test in $TESTS; do @@ -50,5 +51,8 @@ for test in $TESTS; do --mountpoint ${MOUNTPOINT[-1]} \ --user $USER --mntopt sec=$sec \ $test $ARGS | python -u $COLOR + ret=$((ret+$?)) done done + +exit $ret