From: Timo Sirainen Date: Tue, 8 Jan 2013 01:25:55 +0000 (+0200) Subject: run-test.sh didn't exit with failure code when the test failed X-Git-Tag: 2.1.14~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54073bf3354f35b25091a89fb33f2ab5d9c8bfbc;p=thirdparty%2Fdovecot%2Fcore.git run-test.sh didn't exit with failure code when the test failed --- diff --git a/run-test.sh b/run-test.sh index aa5d53459d..2e2841df2e 100644 --- a/run-test.sh +++ b/run-test.sh @@ -5,11 +5,14 @@ trap "rm -f test.out.$$" 0 1 2 3 15 if valgrind --version | grep '^valgrind-3.[012]'; then # RHEL 5.4 still has Valgrind v3.2 valgrind -q --log-file-exactly=test.out.$$ $* + ret=$? else # v3.3+ valgrind -q --log-file=test.out.$$ $* + ret=$? fi if [ -s test.out.$$ ]; then cat test.out.$$ exit 1 fi +exit $ret