summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-10-08 13:39:30 +1100
committerAmitay Isaacs <amitay@samba.org>2018-11-06 07:16:16 +0100
commitaa2ee4bea8d87f7095c97622b1382ef27e9105fb (patch)
tree2f8017580d0ce9a308806c69124609ab0280981a /ctdb
parent92337234e5ebe06397e34861b10cda5dfc5b7ed5 (diff)
downloadsamba-aa2ee4bea8d87f7095c97622b1382ef27e9105fb.tar.gz
ctdb-tests: Improve signal handling trap
Interrupting a test run currently moves on to the next test. It should exit. Follow the practice of exiting with 128 + signal number. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/run_tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/tests/run_tests.sh b/ctdb/tests/run_tests.sh
index dc9027df996..48fd0624f75 100755
--- a/ctdb/tests/run_tests.sh
+++ b/ctdb/tests/run_tests.sh
@@ -284,7 +284,8 @@ do_cleanup ()
fi
}
-trap do_cleanup SIGINT SIGTERM
+trap "do_cleanup ; exit 130" SIGINT
+trap "do_cleanup ; exit 143" SIGTERM
declare -a tests
i=0