[igt-dev] [PATCH i-g-t 1/6] scripts/test_list.py: add support to define a name at the config file

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri May 26 11:56:32 UTC 2023


On 2023-05-22 at 16:21:56 +0200, Mauro Carvalho Chehab wrote:
> From: Mauro Carvalho Chehab <mchehab at kernel.org>
> 
> Instead of inferring the driver name from the test directory, allow
> specifying it at the JSON config file.
> 
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>

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

> ---
>  scripts/test_list.py | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/scripts/test_list.py b/scripts/test_list.py
> index 21767870b1c1..654ccd8692d4 100755
> --- a/scripts/test_list.py
> +++ b/scripts/test_list.py
> @@ -337,16 +337,16 @@ class TestList:
>          if has_implemented:
>              if has_planned:
>                  planned_class = "Planned"
> -                self.title = "Planned and implemented tests for "
> +                self.title = "Planned and implemented "
>              else:
> -                self.title = "Implemented tests for "
> +                self.title = "Implemented "
>          else:
>              if has_planned:
> -                self.title = "Planned tests for "
> +                self.title = "Planned "
>              else:
>                  sys.exit("Need file names to be processed")
>  
> -        self.title += driver_name + " driver"
> +        self.title += self.config.get("name", "tests for " + driver_name + " driver")
>  
>          # Parse files, expanding wildcards
>          field_re = re.compile(r"(" + '|'.join(self.field_list.keys()) + r'):\s*(.*)', re.I)
> -- 
> 2.40.1
> 


More information about the igt-dev mailing list