projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5177c51
)
qemu-iotests: common.config: Fix no $TEST_DIR directory
author
Mitnick Lyu
<mitnick.lyu@gmail.com>
Mon, 11 Apr 2011 20:05:44 +0000
(
04:05
+0800)
committer
Kevin Wolf
<kwolf@redhat.com>
Thu, 23 Feb 2012 09:29:47 +0000
(10:29 +0100)
mkdir $TEST_DIR on common.config first run
Signed-off-by: Mitnick Lyu <mitnick.lyu@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
tests/qemu-iotests/common.config
patch
|
blob
|
history
diff --git
a/tests/qemu-iotests/common.config
b/tests/qemu-iotests/common.config
index bdd053095b9db80fbd4c1b1044bd72985e61f711..d5a72affc642225b0611d5ac2c682d0b004b992e 100644
(file)
--- a/
tests/qemu-iotests/common.config
+++ b/
tests/qemu-iotests/common.config
@@
-102,8
+102,12
@@
export QEMU_IO="$QEMU_IO_PROG $QEMU_IO_OPTIONS"
[ -f /etc/qemu-iotest.config ] && . /etc/qemu-iotest.config
+if [ -z "$TEST_DIR" ]; then
+ TEST_DIR=`pwd`/scratch
+fi
+
if [ ! -e "$TEST_DIR" ]; then
- TEST_DIR=`pwd`/scratch
+ mkdir "$TEST_DIR"
fi
if [ ! -d "$TEST_DIR" ]; then