The tests still use the script options but the event scripts no longer
see them exported from the test infrastructure. Testing now depends
on the event scripts successfully fetching the options from the
configuration file.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
setup ()
{
- export CTDB_RECOVERY_LOCK="${EVENTSCRIPTS_TESTS_VAR_DIR}/rec.lock"
+ CTDB_RECOVERY_LOCK="${EVENTSCRIPTS_TESTS_VAR_DIR}/rec.lock"
cat >>"${CTDB_BASE}/ctdb.conf" <<EOF
[cluster]
setup_dbdir ()
{
export CTDB_DBDIR_BASE="${EVENTSCRIPTS_TESTS_VAR_DIR}/db"
- export CTDB_DBDIR="${CTDB_DBDIR_BASE}/volatile"
- export CTDB_DBDIR_PERSISTENT="${CTDB_DBDIR_BASE}/persistent"
- export CTDB_DBDIR_STATE="${CTDB_DBDIR_BASE}/state"
+ CTDB_DBDIR="${CTDB_DBDIR_BASE}/volatile"
+ CTDB_DBDIR_PERSISTENT="${CTDB_DBDIR_BASE}/persistent"
+ CTDB_DBDIR_STATE="${CTDB_DBDIR_BASE}/state"
cat >>"${CTDB_BASE}/ctdb.conf" <<EOF
[database]
volatile database directory = ${CTDB_DBDIR}