summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-04-30 14:50:20 -0600
committerJens Axboe <axboe@kernel.dk>2019-04-30 14:50:20 -0600
commit49d2017b3df8d5a98fd3b5293fcfe36c747bd1bd (patch)
tree12308bf621d37464af8c3001e15257c24bc54acc
parent6cd873cec62a9f97923f21434fbb458151900849 (diff)
test/runtests.sh: list all failed tests when done
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xtest/runtests.sh6
1 files changed, 6 insertions, 0 deletions
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