[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH v2 15/18] iotests: Let verify_platform() check f
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [RFC PATCH v2 15/18] iotests: Let verify_platform() check for unsupported platforms |
Date: |
Tue, 29 Jan 2019 18:54:00 +0100 |
Instead of checking for a supported platforms, it might be useful
to test for the opposite.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/qemu-iotests/iotests.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index cbedfaf1df..9b6387b0a3 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -696,9 +696,11 @@ def verify_protocol(supported=[], unsupported=[]):
if not_sup or (imgproto in unsupported):
notrun('not suitable for this protocol: %s' % imgproto)
-def verify_platform(supported_oses=['linux']):
+def verify_platform(supported_oses=['linux'], unsupported_oses=[]):
if True not in [sys.platform.startswith(x) for x in supported_oses]:
notrun('not suitable for this OS: %s' % sys.platform)
+ if True in [sys.platform.startswith(x) for x in unsupported_oses]:
+ notrun('not suitable for this OS: %s' % sys.platform)
def verify_cache_mode(supported_cache_modes=[]):
if supported_cache_modes and (cachemode not in supported_cache_modes):
--
2.20.1
- [Qemu-devel] [PATCH v2 08/18] tests/bios-tables: Improve portability by searching bash in the $PATH, (continued)
- [Qemu-devel] [PATCH v2 08/18] tests/bios-tables: Improve portability by searching bash in the $PATH, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [PATCH v2 09/18] tests/vm/openbsd: Install Bash from the ports, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [RFC PATCH v2 10/18] qemu-iotests: Ensure GNU sed is used, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [PATCH v2 11/18] tests/vm/openbsd: Install GNU sed from the ports, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [RFC PATCH v2 12/18] test-iov: Disable iov/io test on OpenBSD, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [RFC PATCH v2 13/18] oslib-posix: Ignore fcntl("/dev/null", F_SETFL, O_NONBLOCK) failure, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [PATCH v2 14/18] tests/vm: Run tests on OpenBSD, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [RFC PATCH v2 15/18] iotests: Let verify_platform() check for unsupported platforms,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [RFC PATCH v2 16/18] iotests: Disable 208 on OpenBSD, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [RFC PATCH v2 17/18] iotests: Disable 209 on OpenBSD, Philippe Mathieu-Daudé, 2019/01/29
- [Qemu-devel] [RFC PATCH v2 18/18] iotests: Disable 236 and 238 on OpenBSD, Philippe Mathieu-Daudé, 2019/01/29