Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> Cc: Damien Le Moal <damien.lemoal@xxxxxxx> --- t/zbd/test-zbd-support | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index fd30f5c6ecca..2d7279109af9 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 -- 2.19.0.605.g01d371f741-goog