[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v4 01/10] qemu-iotests: refuse to run if TEST_DIR co
From: |
Jeff Cody |
Subject: |
[Qemu-block] [PATCH v4 01/10] qemu-iotests: refuse to run if TEST_DIR contains spaces |
Date: |
Tue, 17 Oct 2017 00:32:37 -0400 |
Currently, not all qemu-iotests work if TEST_DIR has spaces, and they
also might not be safe. Refuse to run if TEST_DIR in this case, at
least until all tests are fixed sometime in the future.
Signed-off-by: Jeff Cody <address@hidden>
---
tests/qemu-iotests/check | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check
index e6b6ff7..e2163cc 100755
--- a/tests/qemu-iotests/check
+++ b/tests/qemu-iotests/check
@@ -102,6 +102,14 @@ if [ -z "$TEST_DIR" ]; then
TEST_DIR=`pwd`/scratch
fi
+case $TEST_DIR in
+ *[[:blank:]]*)
+ echo "The TEST_DIR pathname '$TEST_DIR' contains whitespace. "
+ echo "This is currently unsupported by qemu-iotests"
+ exit 1
+ ;;
+esac
+
if [ ! -e "$TEST_DIR" ]; then
mkdir "$TEST_DIR"
fi
--
2.9.5
- [Qemu-block] [PATCH v4 00/10] qemu-iotests improvements, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 01/10] qemu-iotests: refuse to run if TEST_DIR contains spaces,
Jeff Cody <=
- [Qemu-block] [PATCH v4 02/10] qemu-iotests: set TEST_DIR to a unique dir for each test, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 03/10] qemu-iotests: automatically clean up bash protocol servers, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 05/10] qemu-iotests: change qemu pid and fd tracking / cleanup, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 06/10] qemu-iotests: make ./check automatically reap QEMU processes, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 04/10] qemu-iotests: remove file cleanup from bash tests, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 07/10] qemu-iotests: run python tests in own subdirectories, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 09/10] qemu-iotests: add option to save temp files on error, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 10/10] qemu-iotests: add support for running multi-threaded iotests, Jeff Cody, 2017/10/17
- [Qemu-block] [PATCH v4 08/10] qemu-iotests: modify python tests to run from subdir, Jeff Cody, 2017/10/17
- Message not available