]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
check: move TMPDIR to repo directory
authorOmar Sandoval <osandov@fb.com>
Mon, 11 Jun 2018 21:54:42 +0000 (14:54 -0700)
committerOmar Sandoval <osandov@fb.com>
Mon, 11 Jun 2018 21:56:05 +0000 (14:56 -0700)
The new NVMeOF tests require direct I/O in TMPDIR, which obviously
doesn't work on tmpfs.

Signed-off-by: Omar Sandoval <osandov@fb.com>
check

diff --git a/check b/check
index 08d02137d0efb7f728bb04f49bfaedbdcd15dd2c..4baa8dde2436256eec9752271a441958baf7f464 100755 (executable)
--- a/check
+++ b/check
@@ -320,7 +320,7 @@ _call_test() {
        fi
 
        trap _cleanup EXIT
-       if ! TMPDIR="$(mktemp --tmpdir -d "blktests.${TEST_NAME//\//.}.XXX")"; then
+       if ! TMPDIR="$(mktemp --tmpdir -p results -d "tmpdir.${TEST_NAME//\//.}.XXX")"; then
                return
        fi