summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/simple/scripts
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-11-29 14:05:49 +1100
committerMichael Adam <obnox@samba.org>2013-12-05 00:43:12 +0100
commitf05db5edc434da61bc7cd7233c5b9cb61cd888bf (patch)
treedeb72baff78a9fd98c356486ab77d7cc676cec4f /ctdb/tests/simple/scripts
parent6b15fe247c4c026064a8f412011d484d3b74bfc7 (diff)
downloadsamba-f05db5edc434da61bc7cd7233c5b9cb61cd888bf.tar.gz
samba-f05db5edc434da61bc7cd7233c5b9cb61cd888bf.tar.xz
samba-f05db5edc434da61bc7cd7233c5b9cb61cd888bf.zip
ctdb/tests/integration: Update daemons shutdown pseudo-test
Don't scatter the TEST_LOCAL_DAEMONS logic around the code. Limit it to the local daemons file. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'ctdb/tests/simple/scripts')
-rw-r--r--ctdb/tests/simple/scripts/local_daemons.bash7
1 files changed, 7 insertions, 0 deletions
diff --git a/ctdb/tests/simple/scripts/local_daemons.bash b/ctdb/tests/simple/scripts/local_daemons.bash
index b286b4d5b5..6bd2138a82 100644
--- a/ctdb/tests/simple/scripts/local_daemons.bash
+++ b/ctdb/tests/simple/scripts/local_daemons.bash
@@ -120,3 +120,10 @@ daemons_start ()
daemons_start_1 $i "$@"
done
}
+
+maybe_stop_ctdb ()
+{
+ if $TEST_CLEANUP ; then
+ daemons_stop
+ fi
+}