1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

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)
This commit is contained in:
Martin Schwenke 2012-04-18 10:35:25 +10:00
parent aaa6565977
commit 6e05811c28

View File

@ -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