1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/simple
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
..
00_ctdb_init.sh Separate test cleanup code in output and clean up ctdb restart code. 2009-07-03 17:40:16 +10:00
00_ctdb_install_eventscript.sh Added use of $ctdb_test_exit_hook to function ctdb_test_exit. Removed 2008-12-09 18:20:11 +11:00
00_ctdb_onnode.sh New test 09_ctdb_ping.sh. Add documentation and command-line 2008-11-24 17:47:09 +11:00
01_ctdb_version.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
02_ctdb_listvars.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
03_ctdb_getvar.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
04_ctdb_setvar.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
05_ctdb_listnodes.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
06_ctdb_getpid.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
07_ctdb_process_exists.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
08_ctdb_isnotrecmaster.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
09_ctdb_ping.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
11_ctdb_ip.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
12_ctdb_getdebug.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
13_ctdb_setdebug.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
14_ctdb_statistics.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
15_ctdb_statisticsreset.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
16_ctdb_config_add_ip.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
17_ctdb_config_delete_ip.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
18_ctdb_freeze.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
19_ctdb_thaw.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
20_ctdb_getmonmode.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
21_ctdb_disablemonitor.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
22_ctdb_enablemonitor.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
23_ctdb_moveip.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
24_ctdb_getdbmap.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
25_dumpmemory.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
26_ctdb_config_check_error_on_unreachable_ctdb.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
31_ctdb_disable.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
32_ctdb_enable.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
41_ctdb_stop.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
42_ctdb_continue.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
43_stop_recmaster_yield.sh Test suite: wait_until_node_has_status() now uses "onnode any". 2009-09-11 15:55:53 +10:00
51_ctdb_bench.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
52_ctdb_fetch.sh tests: fix the 52_ctdb_fetch.sh test. 2009-08-04 09:46:40 +02:00
53_ctdb_transaction.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
61_ctdb_persistent_safe.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
62_ctdb_persistent_unsafe.sh Test suite: better debug info when the cluster is unexpectedly unhealthy. 2009-07-06 17:52:11 +10:00
99_ctdb_uninstall_eventscript.sh Added use of $ctdb_test_exit_hook to function ctdb_test_exit. Removed 2008-12-09 18:20:11 +11:00