qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [qemu-iotests] [PATCH] common.config: Fix no $TEST_DIR directory
@ 2011-04-11 20:05 Mitnick Lyu
  2011-04-21  6:49 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Mitnick Lyu @ 2011-04-11 20:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanha, hch, Mitnick Lyu

mkdir $TEST_DIR on common.config first run

Signed-off-by: Mitnick Lyu <mitnick.lyu@gmail.com>
---
 common.config |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/common.config b/common.config
index bdd0530..d5a72af 100644
--- a/common.config
+++ b/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
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-21  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-11 20:05 [Qemu-devel] [qemu-iotests] [PATCH] common.config: Fix no $TEST_DIR directory Mitnick Lyu
2011-04-21  6:49 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).