diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-02-17 18:34:36 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-02-17 18:34:36 +0100 |
commit | cf62447e091a316de9959eb02d3c0a7b6d07e961 (patch) | |
tree | 09a8fe0773b87e4271d120cb0a3e13281228c153 /test/integration/run-tests | |
parent | 87f8f68c50f63b39b7a91e3aec0b5ef59069186d (diff) | |
parent | 8429cff25c3f1602dbff5e9b87d1522df34eafbc (diff) |
merged from debian-sid
Diffstat (limited to 'test/integration/run-tests')
-rwxr-xr-x | test/integration/run-tests | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/integration/run-tests b/test/integration/run-tests index 7314e6b61..edac07dbf 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -1,6 +1,7 @@ #!/bin/sh set -e +FAIL=0 DIR=$(readlink -f $(dirname $0)) if [ "$1" = "-q" ]; then export MSGLEVEL=2 @@ -13,8 +14,14 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do else echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m" fi - ${testcase} + if ! ${testcase}; then + FAIL=$((FAIL+1)) + echo "$(basename $testcase) ... FAIL" + fi if [ "$1" = "-q" ]; then echo fi done + +echo "failures: $FAIL" +exit $FAIL |