On 10/1/19 3:46 PM, Max Reitz wrote: > Signed-off-by: Max Reitz <[email protected]> > --- > tests/qemu-iotests/iotests.py | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py > index cdcb62c4ac..b5ea424de4 100644 > --- a/tests/qemu-iotests/iotests.py > +++ b/tests/qemu-iotests/iotests.py > @@ -998,7 +998,8 @@ def execute_setup_common(supported_fmts=[], > supported_cache_modes=[], > unsupported_fmts=[], > supported_protocols=[], > - unsupported_protocols=[]): > + unsupported_protocols=[], > + unsupported_imgopts=[]): > """ > Perform necessary setup for either script-style or unittest-style tests. > """ > @@ -1016,6 +1017,10 @@ def execute_setup_common(supported_fmts=[], > verify_platform(supported=supported_platforms) > verify_cache_mode(supported_cache_modes) > > + for opt in imgopts: > + if any(unsupported in opt for unsupported in unsupported_imgopts): any() is cool and I don't use it as often as I should. > + notrun('not suitable for this option: %s' % opt) > + > debug = '-d' in sys.argv > if debug: > sys.argv.remove('-d') > Reviewed-by: John Snow <[email protected]>
- [PATCH 10/67] iotests/169: Skip persistent ca... Max Reitz
- [PATCH 02/67] iotests.py: Add @skip_for_imgop... Max Reitz
- Re: [PATCH 02/67] iotests.py: Add @skip_... John Snow
- Re: [PATCH 02/67] iotests.py: Add @skip_... Vladimir Sementsov-Ogievskiy
- [PATCH 04/67] iotests.py: create_test_image, ... Max Reitz
- Re: [PATCH 04/67] iotests.py: create_tes... John Snow
- Re: [PATCH 04/67] iotests.py: create... John Snow
- Re: [PATCH 04/67] iotests.py: create... Max Reitz
- Re: [PATCH 04/67] iotests.py: cr... John Snow
- [PATCH 03/67] iotests.py: Add unsupported_img... Max Reitz
- Re: [PATCH 03/67] iotests.py: Add unsupp... John Snow
- Re: [PATCH 03/67] iotests.py: Add unsupp... Vladimir Sementsov-Ogievskiy
- [PATCH 14/67] iotests: Use unsupported_imgopt... Max Reitz
- [PATCH 16/67] iotests/040: Honor $IMGOPTS Max Reitz
- [PATCH 17/67] iotests/041: Honor $IMGOPTS Max Reitz
- [PATCH 06/67] iotests.py: Add image_path() Max Reitz
- [PATCH 08/67] iotests.py: Add filter_json_fil... Max Reitz
- [PATCH 09/67] iotests.py: Add @hide_fields to... Max Reitz
- [PATCH 12/67] iotests/228: Filter json:{} fil... Max Reitz
- [PATCH 15/67] iotests/030: Honor $IMGOPTS Max Reitz
- [PATCH 13/67] iotests/242: Hide refcount bit ... Max Reitz
