qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/3] qemu-iotests: Introduce _unsupported_imgopts


From: Fam Zheng
Subject: [Qemu-devel] [PATCH 1/3] qemu-iotests: Introduce _unsupported_imgopts
Date: Tue, 26 Nov 2013 14:40:32 +0800

Introduce _unsupported_imgopts that causes _notrun for specific image
options.

Signed-off-by: Fam Zheng <address@hidden>
---
 tests/qemu-iotests/common.rc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index 7f62457..d465c48 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -387,6 +387,17 @@ _supported_os()
     _notrun "not suitable for this OS: $HOSTOS"
 }
 
+_unsupported_imgopts()
+{
+    for bad_opt
+    do
+        if echo "$IMGOPTS" | grep -q 2>/dev/null "$bad_opt"
+        then
+            _notrun "not suitable for image option: $bad_opt"
+        fi
+    done
+}
+
 _unsupported_qemu_io_options()
 {
     for bad_opt
-- 
1.8.4.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]