ctdb-tests: Conditionally use temporary config file for local daemons
commitaf2386bdc2f0b69acb65701f15352ea14c0f0051
authorMartin Schwenke <martin@meltin.net>
Mon, 29 Aug 2016 06:49:07 +0000 (29 16:49 +1000)
committerStefan Metzmacher <metze@samba.org>
Tue, 6 Sep 2016 06:22:18 +0000 (6 08:22 +0200)
tree92a287244cbe692f7b98a5e314b6e5d27702275d
parent7e0846a3b9dddc1adec11f04912cc2d3249d394c
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>
(cherry picked from commit 7885b9652fcb3b30361a8b2e0b4688c261b55065)
ctdb/tests/simple/scripts/local_daemons.bash