We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa8464b + ca7e4f2 commit a611ce9Copy full SHA for a611ce9
tests/unittest.sh
@@ -92,16 +92,17 @@ function assert_empty {
92
fi
93
}
94
95
-# print a summary of passing and failing tests, exiting
96
-# with an error if we have failed tests
+# Print a summary of passing and failing tests and exit
+# (with an error if we have failed tests)
97
# usage: report_results
98
function report_results {
99
echo "$PASS Tests PASSED"
100
- if [[ $ERROR -gt 1 ]]; then
+ if [[ $ERROR -gt 0 ]]; then
101
echo
102
echo "The following $ERROR tests FAILED"
103
echo -e "$FAILED_FUNCS"
104
echo "---"
105
exit 1
106
107
+ exit 0
108
0 commit comments