diff options
author | Michael Vogt <mvo@debian.org> | 2013-10-22 21:38:45 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-10-22 21:38:45 +0200 |
commit | 2b4e2e839ad6031061ffb0c58b1065a744d5a300 (patch) | |
tree | 644a0b8d2000fa18514d423be04f9f3e97c16b5c /test | |
parent | 4c9234d668bc1a250fd1af4c5d90497a08be67fd (diff) |
test/integration/run-tests: output the failed test names
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/run-tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/run-tests b/test/integration/run-tests index 18474b20f..7316016e2 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -2,6 +2,7 @@ set -e FAIL=0 +FAILED_TESTS="" DIR=$(readlink -f $(dirname $0)) if [ "$1" = "-q" ]; then export MSGLEVEL=2 @@ -29,6 +30,7 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do fi if ! ${testcase}; then FAIL=$((FAIL+1)) + FAILED_TESTS="$FAILED_TESTS $(basename $testcase)" echo "$(basename $testcase) ... FAIL" fi if [ "$MSGLEVEL" -le 2 ]; then @@ -37,5 +39,8 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do done echo "failures: $FAIL" +if [ -n "$FAILED_TESTS" ]; then + echo "Failed tests: $FAILED_TESTS"; +fi # ensure we don't overflow exit $((FAIL <= 255 ? FAIL : 255)) |