summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/067
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-08-21 23:20:42 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-08-22 13:37:35 +0200
commit3febc4d4de97f330e9cabc5484c6815883967e0c (patch)
tree026a5e7ab231ee6cfb7a27f61f5da14a5368aeed /tests/qemu-iotests/067
parentcbf95a0b117461473f05ab3cce4d01ba2b29e60a (diff)
downloadqemu-3febc4d4de97f330e9cabc5484c6815883967e0c.tar.gz
qemu-iotests: stop using /tmp directly
Before this patch you could not run multiple tests concurrently as they might clobber each other test files. This patch solves that by using random temporary directory instead of `/tmp` (for writing output in the individual tests and valgrind logs). Furthermore, this patch stops removing everything in `/tmp/` matching a certain pattern (`/tmp/*.{err,out,time}`). These might not be a property of QEMU. Running multiple concurrent tests in the same object directory is still not supported though as the scratch directory and .bad and .notrun files still interfere with each other. Also not touched is the situation that /tmp/check.log and /tmp/check.sts are hard-coded (and thus unusable in concurrent tests). Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'tests/qemu-iotests/067')
-rwxr-xr-xtests/qemu-iotests/0672
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/067 b/tests/qemu-iotests/067
index d025192c83..d3ac7d75dd 100755
--- a/tests/qemu-iotests/067
+++ b/tests/qemu-iotests/067
@@ -25,7 +25,7 @@ seq=`basename $0`
echo "QA output created by $seq"
here=`pwd`
-tmp=/tmp/$$
+tmp=${QEMU_IOTESTS_TMPDIR:-/tmp}/$$
status=1 # failure is the default!
# get standard environment, filters and checks