summaryrefslogtreecommitdiff
path: root/test-nsc/scalanstest
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/scalanstest')
-rw-r--r--test-nsc/scalanstest7
1 files changed, 3 insertions, 4 deletions
diff --git a/test-nsc/scalanstest b/test-nsc/scalanstest
index 78a9b11fed..37de528c8e 100644
--- a/test-nsc/scalanstest
+++ b/test-nsc/scalanstest
@@ -532,12 +532,11 @@ printf_outline "Source directory is: $SRCDIR\\n\\n";
test_check_all;
+TOTAL_COUNT=`echo "$FAILURE_COUNT+$SUCCESS_COUNT" | bc`;
if [ $FAILURE_COUNT -eq 0 ]; then
- printf_success "All tests were successful\\n";
-elif [ $FAILURE_COUNT -eq 1 ]; then
- printf_failure "There was 1 test that failed\\n";
+ printf_success "All $TOTAL_COUNT tests were successful\\n";
else
- printf_failure "There were $FAILURE_COUNT tests that failed\\n";
+ printf_failure "$FAILURE_COUNT of $TOTAL_COUNT tests failed\\n";
fi;
if [ $FAILURE_COUNT -eq "$ERRORS" ]; then