From e8eb47ef2bf67bd3b85771bbb1c157b0d81f0fbe Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 1 Jun 2016 14:20:31 -0700 Subject: [PATCH] test: Add a simple completion message and test cnt * Simplify the review of the test log by looking for a magic line. --- test-ci.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test-ci.sh b/test-ci.sh index 2b464c4..12520e0 100755 --- a/test-ci.sh +++ b/test-ci.sh @@ -3,13 +3,17 @@ set -x cd "$(dirname "$(readlink -f "$0")")/tests" +let cnt=0 for i in *.sh; do - echo -e "\n>> Running test $i\n" + cnt=$(($cnt + 1)) + echo -e "\n>> Running test #$cnt \"$i\"\n" ./${i} retval=$? if [ $retval != 0 ]; then - echo "Failed $i with exit code $retval" + echo ">> FAILED test #$cnt \"$i\", exit code $retval" exit $retval fi done + +echo ">> All $cnt tests PASSED"