diff options
author | Martin Schwenke <martin@meltin.net> | 2018-09-07 13:39:49 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2018-12-18 02:02:03 +0100 |
commit | ba83aa9d8b20b11f1febb77d2607ee2a38456f6e (patch) | |
tree | 30d16912fe5ffb503d5115aaaf250049440852c9 /ctdb | |
parent | da8aaf2aee2ff145f3001ae1fcf3626d6a9bc17d (diff) | |
download | samba-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-x | ctdb/tests/cunit/event_script_test_001.sh | 2 |
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 |