Use Samba TestCase class, as the python 2.6 one doesn't have assertIs, assertIsInstan...
[Samba.git] / ctdb / tests / simple / 99_daemons_shutdown.sh
blob42ea1f4031c34c4f3ce0739b213db65baf5480f9
1 #!/bin/bash
3 test_info()
5 cat <<EOF
6 If we running local daemons and TEST_CLEANUP is true then shutdown the daemons.
8 No error if ctdbd is not already running on the cluster.
10 Prerequisites:
12 * Nodes must be accessible via 'onnode'.
13 EOF
16 . "${TEST_SCRIPTS_DIR}/integration.bash"
18 # Do not call ctdb_test_init() here. It will setup ctdb_test_exit()
19 # to run and that will find the daemons missing and restart them!
21 # We only want to consider stopping CTDB if we're running local
22 # daemons. This function will do the right thing.
23 maybe_stop_ctdb