diff options
author | Mitnick Lyu <mitnick.lyu@gmail.com> | 2011-04-12 04:05:44 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-02-23 10:29:47 +0100 |
commit | 5e654e08ff62bed2dd58ccb59466bcc1333450f4 (patch) | |
tree | 6f59f2a3ccefffd6bcdb68a8a875ec3c6933bf33 /tests | |
parent | 5177c5124545f32f15f0da96d1283c90f723839c (diff) |
qemu-iotests: common.config: Fix no $TEST_DIR directory
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qemu-iotests/common.config | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config index bdd053095b..d5a72affc6 100644 --- 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 |