cleanup on SIGINT
authorAndrew Tridgell <tridge@samba.org>
Wed, 30 Jul 2008 03:21:02 +0000 (13:21 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 30 Jul 2008 03:21:02 +0000 (13:21 +1000)
tests/run_tests.sh

index 356a9b21a045e3126dae93bc78f05d9cc3033aa8..3e1caf43a220e3536132c0abe7e6eaef52415e31 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+trap 'echo "Killing test"; killall -9 -q ctdbd; exit 1' INT TERM
+
 tests/fetch.sh 4 || exit 1
 tests/bench.sh 4 || exit 1
 tests/ctdbd.sh || exit 1