From: Martin Schwenke Date: Thu, 1 Mar 2018 04:39:44 +0000 (+1100) Subject: ctdb-tests: New directory for simple test state X-Git-Tag: talloc-2.1.12~210 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee9051b7f7884a3beead841ef2a7684d8ab48784;p=thirdparty%2Fsamba.git ctdb-tests: New directory for simple test state Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/simple/scripts/local.bash b/ctdb/tests/simple/scripts/local.bash index 1ccbb235f1d..2cbf30de257 100644 --- a/ctdb/tests/simple/scripts/local.bash +++ b/ctdb/tests/simple/scripts/local.bash @@ -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"