cthon.zsh: Don't return 0 if one of the tests fails

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Anna Schumaker 2022-05-23 12:29:51 -04:00
parent 0fed27b109
commit 1c3372e3a5
1 changed files with 4 additions and 0 deletions

View File

@ -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