summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-09-07 13:39:49 +1000
committerAmitay Isaacs <amitay@samba.org>2018-12-18 02:02:03 +0100
commitba83aa9d8b20b11f1febb77d2607ee2a38456f6e (patch)
tree30d16912fe5ffb503d5115aaaf250049440852c9 /ctdb
parentda8aaf2aee2ff145f3001ae1fcf3626d6a9bc17d (diff)
downloadsamba-ba83aa9d8b20b11f1febb77d2607ee2a38456f6e.tar.gz
ctdb-event: Force script directory to be absolute
If TEST_VAR_DIR is relative then symbolic link targets will be incorrect. Don't force TEST_VAR_DIR to be absolute because this can result in Unix domain socket names that are too long. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/cunit/event_script_test_001.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/tests/cunit/event_script_test_001.sh b/ctdb/tests/cunit/event_script_test_001.sh
index 9a264122e9a..0ef93653dc7 100755
--- a/ctdb/tests/cunit/event_script_test_001.sh
+++ b/ctdb/tests/cunit/event_script_test_001.sh
@@ -5,6 +5,8 @@
scriptdir="${TEST_VAR_DIR}/cunit/scriptdir"
mkdir -p "${scriptdir}"
+scriptdir=$(cd "$scriptdir" && echo "$PWD")
+
test_cleanup "rm -rf ${scriptdir}"
# Invalid path