From: Lyu Mitnick <mitnick.lyu@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] qemu-iotests: Fixed no scratch directory in qemu-iotests
Date: Sat, 9 Apr 2011 05:21:24 +0800 [thread overview]
Message-ID: <BANLkTimkMDBnCgc23_9twpj5fO+NcKhzLA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 734 bytes --]
This my first time to submit patch, please tell me if I have something
wrong!
Create scratch/ on first run.
Signed-off-by: Mitnick Lyu <mitnick.lyu@gmail.com>
---
common.config | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/common.config b/common.config
index bdd0530..09923d9 100644
--- a/common.config
+++ b/common.config
@@ -102,6 +102,15 @@ export QEMU_IO="$QEMU_IO_PROG $QEMU_IO_OPTIONS"
[ -f /etc/qemu-iotest.config ] && . /etc/qemu-iotest.config
+if [ -e scratch -a ! -d scratch ]; then
+ echo "scratch exist and is not a directory"
+ exit 1
+fi
+
+if [ ! -e scratch ]; then
+ mkdir scratch
+fi
+
if [ ! -e "$TEST_DIR" ]; then
TEST_DIR=`pwd`/scratch
fi
--
1.7.0.4
[-- Attachment #2: Type: text/html, Size: 928 bytes --]
next reply other threads:[~2011-04-08 21:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 21:21 Lyu Mitnick [this message]
2011-04-11 8:34 ` [Qemu-devel] [PATCH] qemu-iotests: Fixed no scratch directory in qemu-iotests Stefan Hajnoczi
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=BANLkTimkMDBnCgc23_9twpj5fO+NcKhzLA@mail.gmail.com \
--to=mitnick.lyu@gmail.com \
--cc=qemu-devel@nongnu.org \
/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).