Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] scripts/test_list.py: fix __filter_subtest() logic
@ 2023-07-10  9:13 Mauro Carvalho Chehab
  2023-07-10 11:41 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2023-07-10  9:13 UTC (permalink / raw)
  To: igt-dev

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

The logic there is searching a value at the wrong place, as
"test" variable at the callers are a number inside doc.test
array. Fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@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 19ed5e5467f5..4f580fb3de58 100755
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -569,7 +569,7 @@ class TestList:
 
             subtest_array = self.expand_subtest(fname, name, test, subtest_only)
             for subtest in subtest_array:
-                if self.__filter_subtest(test, subtest, True):
+                if self.__filter_subtest(self.doc[test], subtest, True):
                     continue
 
                 summary = subtest["Summary"]
@@ -851,7 +851,7 @@ class TestList:
         subtest_array.sort(key = lambda x : x.get('Summary'))
 
         for subtest in subtest_array:
-            if self.__filter_subtest(test, subtest, True):
+            if self.__filter_subtest(self.doc[test], subtest, True):
                 continue
 
             if sort_field:
-- 
2.40.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-10 14:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-10  9:13 [igt-dev] [PATCH i-g-t] scripts/test_list.py: fix __filter_subtest() logic Mauro Carvalho Chehab
2023-07-10 11:41 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-07-10 12:38 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-07-10 14:56 ` [igt-dev] [PATCH i-g-t] " Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox