Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] scripts/test_list.py: fix subtest regex match
@ 2023-10-30 15:43 Mauro Carvalho Chehab
  2023-10-30 19:33 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2023-10-30 15:43 UTC (permalink / raw)
  To: igt-dev

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

Fix a regression introduced by:
	6e3e8e6d7c05 ("scripts/test_list.py: better handle list of tests")

After such change, regex will only do full match, but it needs also to
consider subtests, if the syntax is just igt@test.

Fixes: 6e3e8e6d7c05 ("scripts/test_list.py: better handle list of tests")
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
 scripts/test_list.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/test_list.py b/scripts/test_list.py
index 06215242107a..741ec5f4b5b5 100644
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -476,6 +476,8 @@ class TestList:
                 test = match.group(1)
                 subtest = match.group(2)
                 test_name = f"{test}{subtest}"
+                if not test_name.endswith("$"):
+                    test_name += r"(\@.*)?$"
 
                 if match_type in match_type_regex:
                     testlist[name].append(re.compile(test_name, flags))
-- 
2.41.0

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

end of thread, other threads:[~2023-10-31 19:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-30 15:43 [igt-dev] [PATCH i-g-t] scripts/test_list.py: fix subtest regex match Mauro Carvalho Chehab
2023-10-30 19:33 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-10-30 20:33 ` [igt-dev] ✗ CI.xeBAT: failure " Patchwork
2023-10-31  8:46 ` [igt-dev] [PATCH i-g-t] " Kamil Konieczny
2023-10-31 19:16 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork

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