]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
run-test.sh didn't exit with failure code when the test failed
authorTimo Sirainen <tss@iki.fi>
Tue, 8 Jan 2013 01:25:55 +0000 (03:25 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 8 Jan 2013 01:25:55 +0000 (03:25 +0200)
run-test.sh

index aa5d53459d0e8483af546d34bdb0472d87d81ec3..2e2841df2e40c3ab0960c77c1450d37576581035 100644 (file)
@@ -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