[PATCH i-g-t 02/10] scripts/xls_to_doc.py: don't ignore the last column

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Thu Mar 14 10:29:11 UTC 2024


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

Currently the last line of the spreadsheet is not processed.

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 scripts/xls_to_doc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/xls_to_doc.py b/scripts/xls_to_doc.py
index f47d56719bfe..bd14320a3bce 100755
--- a/scripts/xls_to_doc.py
+++ b/scripts/xls_to_doc.py
@@ -103,7 +103,7 @@ class FillTests(TestList):
         for cell in sheet[1]:
             column_list.append(cell.value)
 
-        for row in range(2, sheet.max_row):
+        for row in range(2, sheet.max_row + 1):
             if sheet[row][0].value is None:
                 print(f"Ignoring sheet after A{row} row, as test name is empty")
                 return
-- 
2.43.2



More information about the igt-dev mailing list