summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-06-20 15:57:48 +1000
committerAmitay Isaacs <amitay@gmail.com>2012-07-26 22:03:00 +1000
commit053174c07bc0fb5e5563d5023b71007390c7762f (patch)
tree98e30d7a8f63c6c59df4c847e75307e1c6a634e4
parent867381486d25a8562090a3766ff8ec4836e1de50 (diff)
downloadsamba-053174c07bc0fb5e5563d5023b71007390c7762f.tar.gz
samba-053174c07bc0fb5e5563d5023b71007390c7762f.tar.xz
samba-053174c07bc0fb5e5563d5023b71007390c7762f.zip
tests: run_tests should exit with $status with -e option
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 619af3e857c2ced3840abfd86135cc954796da97)
-rwxr-xr-xctdb/tests/scripts/run_tests2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/scripts/run_tests b/ctdb/tests/scripts/run_tests
index 0d9577461b..50a578b26c 100755
--- a/ctdb/tests/scripts/run_tests
+++ b/ctdb/tests/scripts/run_tests
@@ -244,7 +244,7 @@ else
fi
if [ $tests_failed -gt 0 ] ; then
- if $no_header ; then
+ if $no_header || $exit_on_fail ; then
exit $status
else
exit 1