From: Bart Van Assche Date: Fri, 28 Sep 2018 21:51:31 +0000 (-0700) Subject: t/zbd/test-zbd-support: Report a test summary when finished X-Git-Tag: fio-3.11~10 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=72176dc7163b12002b1d704bfdea5b19690ff8a0;p=fio.git t/zbd/test-zbd-support: Report a test summary when finished Signed-off-by: Bart Van Assche Cc: Damien Le Moal Signed-off-by: Jens Axboe --- diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index fd30f5c6..2d727910 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -801,18 +801,26 @@ fi logfile=$0.log +passed=0 +failed=0 rc=0 for test_number in "${tests[@]}"; do rm -f "${logfile}.${test_number}" echo -n "Running test $test_number ... " if eval "test$test_number"; then status="PASS" + ((passed++)) else status="FAIL" + ((failed++)) rc=1 fi echo "$status" echo "$status" >> "${logfile}.${test_number}" done +echo "$passed tests passed" +if [ $failed -gt 0 ]; then + echo " and $failed tests failed" +fi exit $rc