From 49d2017b3df8d5a98fd3b5293fcfe36c747bd1bd Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 30 Apr 2019 14:50:20 -0600 Subject: test/runtests.sh: list all failed tests when done Signed-off-by: Jens Axboe --- test/runtests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/runtests.sh b/test/runtests.sh index 50cc0d0..8307eac 100755 --- a/test/runtests.sh +++ b/test/runtests.sh @@ -4,6 +4,7 @@ TESTS="$@" RET=0 TIMEOUT=10 +FAILED="" for t in $TESTS; do echo Running test $t @@ -13,8 +14,13 @@ for t in $TESTS; do echo "Test $t timed out (may not be a failure)" elif [ "${r}" -ne 0 ]; then echo Test $t failed + FAILED="$FAILED $t" RET=1 fi done +if [ "${RET}" -ne 0 ]; then + echo "Tests $FAILED failed" +fi + exit $RET -- cgit