diff options
| author | Martin Schwenke <martin@meltin.net> | 2012-04-24 14:40:52 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2012-04-27 15:42:42 +1000 |
| commit | 46f82181d06db78aba101ad4f19beb7ca9d84005 (patch) | |
| tree | 67605dcb183f53eeb2a83a2eeb23879466f4176a | |
| parent | 70270b6815fa3741f473bdf7262494a271844ca4 (diff) | |
| download | samba-46f82181d06db78aba101ad4f19beb7ca9d84005.tar.gz samba-46f82181d06db78aba101ad4f19beb7ca9d84005.tar.xz samba-46f82181d06db78aba101ad4f19beb7ca9d84005.zip | |
tests/simple: Add new pseudo testcase to potentially shutdown local daemons
Only shuts them down if $TEST_CLEANUP is true.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit eddfc02335202d853e29a89f08225ab44cac8a25)
| -rwxr-xr-x | ctdb/tests/simple/99_daemons_shutdown.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ctdb/tests/simple/99_daemons_shutdown.sh b/ctdb/tests/simple/99_daemons_shutdown.sh new file mode 100755 index 0000000000..3583828b71 --- /dev/null +++ b/ctdb/tests/simple/99_daemons_shutdown.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +test_info() +{ + cat <<EOF +If we running local daemons and TEST_CLEANUP is true then shutdown the daemons. + +No error if ctdbd is not already running on the cluster. + +Prerequisites: + +* Nodes must be accessible via 'onnode'. +EOF +} + +. "${TEST_SCRIPTS_DIR}/integration.bash" + +# Do not call ctdb_test_init() here. It will setup ctdb_test_exit() +# to run and that will find the daemons missing and restart them! + +if [ -n "$TEST_LOCAL_DAEMONS" ] && $TEST_CLEANUP ; then + daemons_stop +fi |
