]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use $TESTDIR for testing mkfs 22247/head
authorKefu Chai <kchai@redhat.com>
Fri, 25 May 2018 12:06:45 +0000 (20:06 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 25 May 2018 14:05:07 +0000 (22:05 +0800)
as tmpfs does not support O_DIRECT, but bluefs use this flag for
accessing the underlying file.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 1692f49b7b51ca599bf2e180d7a69778a5a5ba68)

qa/workunits/cephtool/test_kvstore_tool.sh

index 293e7aa0fbadc512797a15b4461caf8074841a76..34a618e13266d902530b1a7a61c949c200698405 100755 (executable)
@@ -18,7 +18,8 @@ expect_false()
     if "$@"; then return 1; else return 0; fi
 }
 
-TEMP_DIR=$(mktemp -d ${TMPDIR-/tmp}/cephtool.XXX)
+TMPDIR=${TMPDIR:-${TESTDIR}}
+TEMP_DIR=$(mktemp -d ${TMPDIR:-/tmp}/cephtool.XXX)
 trap "rm -fr $TEMP_DIR" 0
 
 TEMP_FILE=$(mktemp $TEMP_DIR/test_invalid.XXX)