ctdb-tests: Do not remove event script dir before shutting down ctdb
authorAmitay Isaacs <amitay@gmail.com>
Fri, 9 Dec 2016 03:38:38 +0000 (14:38 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 16 Dec 2016 07:42:32 +0000 (08:42 +0100)
When the test is over, the exit_hook will remove the temporary event
script directory and then CTDB is restarted.  Explicitly shutting down
CTDB ensures that event script directory is not removed while CTDB is
still running.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/simple/28_zero_eventscripts.sh

index fc31c4a2c121d39191ffaa89f25ab30c7290bf3f..9ff59866f78da611cb8200284ae0b4145622be22 100755 (executable)
@@ -38,3 +38,5 @@ wait_until_ready
 ps_ctdbd
 
 echo "Good, that seems to work!"
+
+daemons_stop