summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/089
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/089
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/089')
-rwxr-xr-xtests/qemu-iotests/0892
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/089 b/tests/qemu-iotests/089
index dffc977e1c..0e2dd91a78 100755
--- a/tests/qemu-iotests/089
+++ b/tests/qemu-iotests/089
@@ -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!
_cleanup()