Skip to content

Commit

Permalink
Exit the tests.sh-script with 0 if all tests succeded, 1 otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
Doeme committed Oct 4, 2019
1 parent b585c34 commit c2fffa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gebuilder/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ fi

declare TEST

exitcode=0

for TEST in "${GEBUILDER_ROOT}/tests/"*.sh
do
if [ ! -x "$TEST" ]
Expand All @@ -34,6 +36,7 @@ do
ok "$TEST ok"
else
error "$TEST failed"
exitcode=1
fi
done

Expand All @@ -42,4 +45,5 @@ do
echo "$line"
done

clean_exit
cleanup
exit $exitcode

0 comments on commit c2fffa7

Please sign in to comment.