[igt-dev] [PATCH i-g-t v4 05/11] scripts/test_list.py: filename arguments for print_ methods are optional

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Thu Aug 31 14:52:07 UTC 2023


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

Add a default to those, as the code doesn't need any arguments.

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 scripts/test_list.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/test_list.py b/scripts/test_list.py
index d0d56954b010..9ab33f15d970 100755
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -595,7 +595,7 @@ class TestList:
     # Output methods
     #
 
-    def print_rest_flat(self, filename):
+    def print_rest_flat(self, filename = None):
 
         """Print tests and subtests ordered by tests"""
 
@@ -707,7 +707,7 @@ class TestList:
                     sheet[row].append('')
         return sheet
 
-    def print_nested_rest(self, filename):
+    def print_nested_rest(self, filename = None):
 
         """Print tests and subtests ordered by tests"""
 
-- 
2.41.0



More information about the igt-dev mailing list