[PATCH i-g-t v2 3/8] scripts/igt_doc.py: handle empty run_type

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Fri Feb 9 11:49:52 UTC 2024


From: Mauro Carvalho Chehab <mchehab at kernel.org>

If run_type is not set, change it to "other".

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 scripts/igt_doc.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/scripts/igt_doc.py b/scripts/igt_doc.py
index a6cbeee067fe..8a10db13081c 100755
--- a/scripts/igt_doc.py
+++ b/scripts/igt_doc.py
@@ -85,6 +85,9 @@ class IgtTestList(TestList):
                     tests_per_list[driver] = {}
 
                 for run_type in run_type_set:
+                    if not run_type:
+                        run_type = "other"
+
                     if run_type not in tests_per_list[driver]:
                         tests_per_list[driver][run_type] = {}
 
@@ -108,6 +111,10 @@ class IgtTestList(TestList):
         for driver, run_types in tests_per_list.items():
             testlists[driver] = {}
             for run_type, subnames in run_types.items():
+
+                if not run_type:
+                    run_type = "other"
+
                 for subname, gpus in subnames.items():
                     if not gpu_set:
                         gpu = "default"
-- 
2.43.0



More information about the igt-dev mailing list