From: Mitnick Lyu <mitnick.lyu@gmail.com>
To: qemu-devel@nongnu.org
Cc: stefanha@gmail.com, hch@lst.de, Mitnick Lyu <mitnick.lyu@gmail.com>
Subject: [Qemu-devel] [qemu-iotests] [PATCH] common.config: Fix no $TEST_DIR directory
Date: Tue, 12 Apr 2011 04:05:44 +0800 [thread overview]
Message-ID: <1302552344-2987-1-git-send-email-mitnick.lyu@gmail.com> (raw)
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
next reply other threads:[~2011-04-12 1:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-11 20:05 Mitnick Lyu [this message]
2011-04-21 6:49 ` [Qemu-devel] [qemu-iotests] [PATCH] common.config: Fix no $TEST_DIR directory Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302552344-2987-1-git-send-email-mitnick.lyu@gmail.com \
--to=mitnick.lyu@gmail.com \
--cc=hch@lst.de \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).