[Top][All Lists]

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

[Qemu-block] [PULL 16/21] qemu-iotests: Add _unsupported_fmt helper

From: Max Reitz
Subject: [Qemu-block] [PULL 16/21] qemu-iotests: Add _unsupported_fmt helper
Date: Sun, 12 Feb 2017 02:38:39 +0100

From: Nir Soffer <address@hidden>

This helper allows adding tests supporting any format expect the
specified formats. This may be useful to test that many formats behave
in a common way.

Signed-off-by: Nir Soffer <address@hidden>
Message-id: address@hidden
Reviewed-by: Max Reitz <address@hidden>
Signed-off-by: Max Reitz <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 4bb9b77807..a3d904fc22 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -355,6 +355,17 @@ _supported_fmt()
     _notrun "not suitable for this image format: $IMGFMT"
+# tests whether $IMGFMT is one of the unsupported image format for a test
+    for f; do
+        if [ "$f" = "$IMGFMT" ]; then
+            _notrun "not suitable for this image format: $IMGFMT"
+        fi
+    done
 # tests whether $IMGPROTO is one of the supported image protocols for a test

reply via email to

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