ctdb-tests: Conditionally use temporary config file for local daemons
authorMartin Schwenke <martin@meltin.net>
Mon, 29 Aug 2016 06:49:07 +0000 (16:49 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 1 Sep 2016 11:30:10 +0000 (13:30 +0200)
commit7885b9652fcb3b30361a8b2e0b4688c261b55065
tree133fb3188a909db23fbdda834a70cccb2f851907
parenta2bbf71ad67e5c3a6287cf62f54ff13389bf2143
ctdb-tests: Conditionally use temporary config file for local daemons

If there's configuration in the environment then daemons_start()
should use a temporary configuration file with that appended.

This means that global overrides don't (harmlessly) build up in the
configuration file during each test and individual tests can override
configuration when calling daemons_start() directly.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12180

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