Skip to contentSkip to conversation

common.config: Fix no $TEST_DIR directory

PATCH Applied Mitnick Lyu 2 participants 2 messages Apr 12, 2011 – Apr 21, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common.config: Fix no $TEST_DIR directory

mkdir $TEST_DIR on common.config first run

---
 common.config |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
common.config +5 -1
index bdd0530..d5a72af 100644
@@ -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
Signature · 1 line
1.7.0.4