diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-08-21 23:20:42 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-08-22 13:37:35 +0200 |
commit | 3febc4d4de97f330e9cabc5484c6815883967e0c (patch) | |
tree | 026a5e7ab231ee6cfb7a27f61f5da14a5368aeed /tests/qemu-iotests/020 | |
parent | cbf95a0b117461473f05ab3cce4d01ba2b29e60a (diff) | |
download | qemu-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/020')
-rwxr-xr-x | tests/qemu-iotests/020 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020 index 2f258dc6e9..e190043701 100755 --- a/tests/qemu-iotests/020 +++ b/tests/qemu-iotests/020 @@ -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() |