[igt-dev] [PATCH i-g-t v2 12/13] scripts/test_list.py: skip some internal fields

Kamil Konieczny kamil.konieczny at linux.intel.com
Wed Jul 12 19:12:13 UTC 2023


Hi Mauro,

On 2023-07-12 at 15:58:53 +0200, Mauro Carvalho Chehab wrote:
> From: Mauro Carvalho Chehab <mchehab at kernel.org>
> 
> both subtest_line and _summary_ are used internally at the script
> logic. They shouldn't be part of the output.
> 
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
> ---
>  scripts/test_list.py | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/scripts/test_list.py b/scripts/test_list.py
> index 1551bc92c010..11aed63cb67a 100644
> --- a/scripts/test_list.py
> +++ b/scripts/test_list.py
> @@ -661,6 +661,10 @@ class TestList:
>                      continue
>                  if field == "arg":
>                      continue
> +                if field == "_summary_":
> +                    continue
> +                if field == "subtest_line":

Maybe also _subtest_line_?
With or without this,

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> +                    continue
>  
>                  print(f":{field}: {self.doc[test][field]}")
>  
> -- 
> 2.40.1
> 


More information about the igt-dev mailing list