1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/ctdb/tests/scripts
Martin Schwenke b8b28cb567 Test suite: wait_until_node_has_status() now uses "onnode any".
Many tests currently do this sort of thing:

  onnode 0 $CTDB_TEST_WRAPPER wait_until_node_has_status 1 disconnected

In fact, they all use exactly the same "onnode 0 $CTDB_TEST_WRAPPER"
idiom.  This is both repetitious and dangerous, since node 0 might be
shutdown during a test.  Instead, we push "onnode any
$CTDB_TEST_WRAPPER" (which selects a connected node) into
wait_until_node_has_status() and just call that function directly in
tests, like this:

  wait_until_node_has_status 1 disconnected

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit a2aaef03d4d6bbd4b42f50f732254935d4d3469c)
2009-09-11 15:55:53 +10:00
..
ctdb_test_env Test binaries now go in tests/bin and ctdb_test_env now adds this 2009-01-09 18:15:06 +11:00
ctdb_test_functions.bash Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
run_tests Fix the run_tests script so that the number of columns is never 0. 2009-07-03 17:58:38 +10:00
test_wrap Bug fixes for tests: simple/12_ctdb_getdebug.sh and scripts/test_wrap. 2009-05-12 14:44:30 +10:00