]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: New directory for simple test state
authorMartin Schwenke <martin@meltin.net>
Thu, 1 Mar 2018 04:39:44 +0000 (15:39 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 9 Mar 2018 06:08:25 +0000 (07:08 +0100)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local.bash

index 1ccbb235f1d5cfd0e72821e9de5d7e2e4dde5f69..2cbf30de257afee71c95674c0a9fdee2acbff6af 100644 (file)
@@ -1,3 +1,11 @@
+if [ -z "$TEST_VAR_DIR" ] ; then
+       die "TEST_VAR_DIR unset"
+fi
+
+export SIMPLE_TESTS_VAR_DIR="${TEST_VAR_DIR}/simple"
+# Don't remove old directory since state is retained between tests
+mkdir -p "$SIMPLE_TESTS_VAR_DIR"
+
 # onnode needs CTDB_BASE to be set when run in-tree
 if [ -z "$CTDB_BASE" ] ; then
     export CTDB_BASE="$TEST_SUBDIR"