qemu-devel
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Qemu-devel] [PATCH] qemu-iotests: Fixed no scratch directory in qemu-io
From
:
Lyu Mitnick
Subject
:
[Qemu-devel] [PATCH] qemu-iotests: Fixed no scratch directory in qemu-iotests
Date
:
Sat, 9 Apr 2011 05:21:24 +0800
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 <
address@hidden
>
---
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
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Qemu-devel] [PATCH] qemu-iotests: Fixed no scratch directory in qemu-iotests
,
Lyu Mitnick
<=
Re: [Qemu-devel] [PATCH] qemu-iotests: Fixed no scratch directory in qemu-iotests
,
Stefan Hajnoczi
,
2011/04/11
Prev by Date:
[Qemu-devel] Re: [regression] configure: add opengl detection
Next by Date:
[Qemu-devel] [PATCH] kvm: ppc: fixes for KVM_SET_SREGS on init
Previous by thread:
[Qemu-devel] [PATCH 11/11] Introduce CPU state
Next by thread:
Re: [Qemu-devel] [PATCH] qemu-iotests: Fixed no scratch directory in qemu-iotests
Index(es):
Date
Thread