[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 4/8] iotests: Use case_skip() in skip_if_unsuppor
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v3 4/8] iotests: Use case_skip() in skip_if_unsupported() |
Date: |
Mon, 19 Aug 2019 22:18:47 +0200 |
skip_if_unsupported() should use the stronger variant case_skip(),
because this allows it to be used even with setUp() (in a meaningful
way).
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/iotests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 2f53baf633..726f904f50 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -896,7 +896,7 @@ def skip_if_unsupported(required_formats=[],
read_only=False):
usf_list = list(set(required_formats) -
set(supported_formats(read_only)))
if usf_list:
- case_notrun('{}: formats {} are not whitelisted'.format(
+ args[0].case_skip('{}: formats {} are not whitelisted'.format(
args[0], usf_list))
else:
return func(*args, **kwargs)
--
2.21.0
- [Qemu-devel] [PATCH v3 0/8] iotests: Selfish patches, Max Reitz, 2019/08/19
- [Qemu-devel] [PATCH v3 1/8] iotests: Add -display none to the qemu options, Max Reitz, 2019/08/19
- [Qemu-devel] [PATCH v3 2/8] iotests: Prefer null-co over null-aio, Max Reitz, 2019/08/19
- [Qemu-devel] [PATCH v3 3/8] iotests: Allow skipping test cases, Max Reitz, 2019/08/19
- [Qemu-devel] [PATCH v3 4/8] iotests: Use case_skip() in skip_if_unsupported(),
Max Reitz <=
- [Qemu-devel] [PATCH v3 5/8] iotests: Let skip_if_unsupported() accept a method, Max Reitz, 2019/08/19
- [Qemu-devel] [PATCH v3 6/8] iotests: Test driver whitelisting in 093, Max Reitz, 2019/08/19