diff options
author | Martin Schwenke <martin@meltin.net> | 2018-10-08 13:39:30 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2018-11-06 07:16:16 +0100 |
commit | aa2ee4bea8d87f7095c97622b1382ef27e9105fb (patch) | |
tree | 2f8017580d0ce9a308806c69124609ab0280981a /ctdb | |
parent | 92337234e5ebe06397e34861b10cda5dfc5b7ed5 (diff) | |
download | samba-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-x | ctdb/tests/run_tests.sh | 3 |
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 |