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

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Mon May 22 14:21:56 UTC 2023


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>
---
 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