diff options
author | Martin Schwenke <martin@meltin.net> | 2013-10-11 15:05:54 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2013-10-22 13:07:13 +1100 |
commit | 5e0eb7bf84320bfffdd7d6b05b5eb2e19fbf4ebe (patch) | |
tree | cdd7f51594c0813f29b2cf0ff59326a37ca6e27d | |
parent | ace6c1ee62ce77772c239c4d146ac51b90482bc6 (diff) | |
download | samba-5e0eb7bf84320bfffdd7d6b05b5eb2e19fbf4ebe.tar.gz samba-5e0eb7bf84320bfffdd7d6b05b5eb2e19fbf4ebe.tar.xz samba-5e0eb7bf84320bfffdd7d6b05b5eb2e19fbf4ebe.zip |
tests: When running local tests with run_tests.sh, use fixed TEST_VAR_DIR
Otherwise we end up with lots of useless temporary directories.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 63924ff372b066cd878b79e71f06de4c24c814a2)
-rwxr-xr-x | ctdb/tests/run_tests.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/tests/run_tests.sh b/ctdb/tests/run_tests.sh index 4ab443f671..5fcd89d5de 100755 --- a/ctdb/tests/run_tests.sh +++ b/ctdb/tests/run_tests.sh @@ -16,6 +16,12 @@ case $(basename "$0") in # * default to running: all unit tests, simple integration tests opts="-s -l" tests="onnode takeover tool eventscripts simple" + # If running in the source tree then use a fixed TEST_VAR_DIR. + # If this script is installed using the INSTALL script then + # TEST_BIN_DIR will be set, so use this as the test. + if [ -z "$TEST_BIN_DIR" ] ; then + opts="${opts} -V ${test_dir}/var" + fi esac # Allow options to be passed to this script. However, if any options |