From 5e654e08ff62bed2dd58ccb59466bcc1333450f4 Mon Sep 17 00:00:00 2001 From: Mitnick Lyu Date: Tue, 12 Apr 2011 04:05:44 +0800 Subject: qemu-iotests: common.config: Fix no $TEST_DIR directory mkdir $TEST_DIR on common.config first run Signed-off-by: Mitnick Lyu Signed-off-by: Christoph Hellwig --- tests/qemu-iotests/common.config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/qemu-iotests') diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config index bdd0530..d5a72af 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 -- cgit v1.1