[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 03/67] iotests.py: Add unsupported_imgopts
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
Re: [PATCH 03/67] iotests.py: Add unsupported_imgopts |
Date: |
Thu, 3 Oct 2019 15:21:47 +0000 |
01.10.2019 22:46, Max Reitz wrote:
> Signed-off-by: Max Reitz <address@hidden>
> ---
> 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):
> + notrun('not suitable for this option: %s' % opt)
> +
same suggestion
> debug = '-d' in sys.argv
> if debug:
> sys.argv.remove('-d')
>
--
Best regards,
Vladimir
- [PATCH 01/67] iotests.py: Read $IMGOPTS, (continued)
- [PATCH 05/67] iotests.py: Add ImagePaths, Max Reitz, 2019/10/01
- [PATCH 08/67] iotests.py: Add filter_json_filename(), Max Reitz, 2019/10/01
- [PATCH 09/67] iotests.py: Add @hide_fields to img_info_log, Max Reitz, 2019/10/01
- [PATCH 07/67] iotests.py: Filter data_file in filter_img_info, Max Reitz, 2019/10/01
- [PATCH 06/67] iotests.py: Add image_path(), Max Reitz, 2019/10/01