ctdb-tests: Do not use ctdbd_wrapper in local daemon tests
authorMartin Schwenke <martin@meltin.net>
Tue, 10 Jul 2018 05:57:19 +0000 (15:57 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 8 Oct 2018 00:46:22 +0000 (02:46 +0200)
commita9ac33015b64b7cf4f8d9e69576f8237a9b62684
treec06ecbe948a5e7819f5acbf8a5ab751706a9d0ef
parent8bde6fa09c93b601cf463c0e25691e8396445cca
ctdb-tests: Do not use ctdbd_wrapper in local daemon tests

Run the daemon directly and shut it down using ctdb shutdown.

The wrapper waits for ctdbd to reach >=FIRST_RECOVERY runstate within
a timeout period and shuts ctdbd down if that doesn't happen.  This is
only really used to ensure that ctdbd doesn't exit early after an
apparently successful start.  There are no known cases where ctdbd
will continue running but fail to reach >=FIRST_RECOVERY runstate.

When ctdbd is started in tests, the test code will wait until ctdbd is
in a healthy state on all nodes before proceeding, so there is
effectively no change in behaviour.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local_daemons.bash