Test suite - fix addip test.
authorMartin Schwenke <martin@meltin.net>
Wed, 4 Aug 2010 06:08:12 +0000 (16:08 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 4 Aug 2010 06:08:12 +0000 (16:08 +1000)
commit1ef7c8e64c7a39330be09ae4d00b70238133e0b5
tree01ee193f78f53e5837897e86718bdfaaccd16907
parent5d9e4b6ee7d2b5290a74e7be79bdf51a43b72f43
Test suite - fix addip test.

The test currently checks that all existing IPs plus the newly added
IP are on the test node after "ctdb addip" is run.  With
DeterministicIPs enabled, if the new IP is "before" other IPs then the
other IPs may be shuffled by the deterministic IPs modulo algorithm.
This will happen on the 1st recovery after the move.  Sometimes this
recovery happens before we get the list of IPs to check and sometimes
after, so the test is racy.

The fix is to simply check for the presence of the new IP and not
worry about the others.  This reduces whatever value this test
had... but you can't have everything.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/simple/16_ctdb_config_add_ip.sh