diff options
author | Martin Schwenke <martin@meltin.net> | 2012-05-10 14:16:45 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2012-05-11 10:33:27 +1000 |
commit | 4cf10db7d4df6f19335a94a4da88403363104714 (patch) | |
tree | 972f3ccda478e2d59acee2c5ea35a01a7ec71948 | |
parent | 17a6d1d9756fc32b2bc85abfa761c21f417d427f (diff) | |
download | samba-4cf10db7d4df6f19335a94a4da88403363104714.tar.gz samba-4cf10db7d4df6f19335a94a4da88403363104714.tar.xz samba-4cf10db7d4df6f19335a94a4da88403363104714.zip |
tests/eventscripts: $CTDB_BASE needs to be in $TEST_VAR_DIR
The policy routing tests write the configuration file into $CTDB_BASE,
as per rcommended practice. Unless this is in $TEST_VAR_DIR this
won't work sensible when the tests are installed.
Things are done slightly different than for /etc. Here we use
symlinks and we want them to be dereferenced.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 61c80f58a8cfbaca7e669ef8cd95b4f6b5dc66c7)
-rw-r--r-- | ctdb/tests/eventscripts/scripts/local.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index afecf50bfa..b2deb05759 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -31,7 +31,8 @@ else fi if [ -d "${TEST_SUBDIR}/etc-ctdb" ] ; then - CTDB_BASE="${TEST_SUBDIR}/etc-ctdb" + cp -prL "${TEST_SUBDIR}/etc-ctdb" "$EVENTSCRIPTS_TESTS_VAR_DIR" + export CTDB_BASE="${EVENTSCRIPTS_TESTS_VAR_DIR}/etc-ctdb" else die "Unable to set \$CTDB_BASE" fi |