Skip to content

Commit

Permalink
use exit code in runtests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Zak authored and Jonathan Zak committed Jul 23, 2024
1 parent d62a8ae commit f5ac8ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,11 @@ do
echo " $num_fail failed"
echo " $num_error errored"
done

if [ $num_fail -ne 0 ] || [ $num_error -ne 0 ]; then
echo "Tests failed."
exit 1
else
echo "All tests passed."
exit 0
fi

0 comments on commit f5ac8ec

Please sign in to comment.