diff options
author | Martin Schwenke <martin@meltin.net> | 2012-04-18 10:35:25 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2012-04-18 10:35:25 +1000 |
commit | 6e05811c28730e604c4ef7dab4b701214f61e51a (patch) | |
tree | af27449b1fac21425446f30c801bd6ece25f8f90 | |
parent | aaa6565977e5f5a1ff6c908ab57e16f8978e044e (diff) | |
download | samba-6e05811c28730e604c4ef7dab4b701214f61e51a.tar.gz samba-6e05811c28730e604c4ef7dab4b701214f61e51a.tar.xz samba-6e05811c28730e604c4ef7dab4b701214f61e51a.zip |
tests/eventscripts: Share directories must be absolute in eventscript tests
This fixes eventscripts/scripts/local.sh:setup_generic() so that
directories listed in $FAKE_SHARES are absolute instead of potentially
relative (and, therefore, ignored by the NFS share check).
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 8544162b7a4efa23c92bc0d2774df95bb7f0f463)
-rw-r--r-- | ctdb/tests/eventscripts/scripts/local.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index cba552e92f..2ee8fd20f0 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -67,6 +67,11 @@ setup_generic () for i in $(seq 1 3) ; do _s="${EVENTSCRIPTS_TESTS_VAR_DIR}/shares/${i}_existing" mkdir -p "$_s" + # Shares must begin with / + case "$_s" in + /*) : ;; + *) _s="${PWD}/$_s" + esac FAKE_SHARES="${FAKE_SHARES}${FAKE_SHARES:+ }${_s}" done |