From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] scripts/test_list.py: fix __filter_subtest() logic
Date: Mon, 10 Jul 2023 11:13:47 +0200 [thread overview]
Message-ID: <20230710091347.689384-1-mauro.chehab@linux.intel.com> (raw)
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
next reply other threads:[~2023-07-10 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 9:13 Mauro Carvalho Chehab [this message]
2023-07-10 11:41 ` [igt-dev] ✗ Fi.CI.BAT: failure for scripts/test_list.py: fix __filter_subtest() logic 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230710091347.689384-1-mauro.chehab@linux.intel.com \
--to=mauro.chehab@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox