[igt-dev] [PATCH i-g-t] scripts/test_list.py: fix subtest regex match
Mauro Carvalho Chehab
mauro.chehab at linux.intel.com
Mon Oct 30 15:43:11 UTC 2023
From: Mauro Carvalho Chehab <mchehab at 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 at test.
Fixes: 6e3e8e6d7c05 ("scripts/test_list.py: better handle list of tests")
Signed-off-by: Mauro Carvalho Chehab <mchehab at 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
More information about the igt-dev
mailing list