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....@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