[PATCH i-g-t 1/3] scripts/xls_to_doc.py: make the script work again

Piecielska, Katarzyna katarzyna.piecielska at intel.com
Fri Mar 8 11:47:44 UTC 2024


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

There were some changes at test_list that caused it to stop working. Fix them.

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
[Katarzyna] 
LGTM 😊
Acked-by: Katarzyna Piecielska <katarzyna.piecielska at intel.com>
---
 scripts/xls_to_doc.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/xls_to_doc.py b/scripts/xls_to_doc.py index ed56a02bf5ca..60ad8225d71d 100755
--- a/scripts/xls_to_doc.py
+++ b/scripts/xls_to_doc.py
@@ -40,8 +40,8 @@ class FillTests(TestList):
 
             subtest_array = self.expand_subtest(fname, name, test, True, True, True)
             for subtest_dict in subtest_array:
-                name = subtest_dict["Summary"]
-                del subtest_dict["Summary"]
+                name = subtest_dict["_summary_"]
+                del subtest_dict["_summary_"]
 
                 match = self.testname_regex.match(name)
                 if not match:
@@ -263,6 +263,7 @@ class FillTests(TestList):
 
                 if subtest_nr not in self.doc[test_nr]["subtest"]:
                     print(f"Error: missing subtest {subtest_nr} at {self.doc[test_nr]['subtest']}")
+                    continue
 
                 doc_content = self.doc[test_nr]["subtest"][subtest_nr]
 
--
2.43.2



More information about the igt-dev mailing list