[igt-dev] [PATCH i-g-t v4 08/11] scripts/test_list.py: fix gen_testlist logic
Mauro Carvalho Chehab
mauro.chehab at linux.intel.com
Fri Sep 8 08:27:44 UTC 2023
From: Mauro Carvalho Chehab <mchehab at kernel.org>
Don't try to find a common prefix for tests, as this cause
troubles when filtering out tests.
Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
scripts/test_list.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/scripts/test_list.py b/scripts/test_list.py
index c9073cc0305f..01f6528ac84c 100644
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -1352,8 +1352,6 @@ class TestList:
"""Generate testlists from the test documentation"""
- test_prefix = os.path.commonprefix(self.get_subtests()[""])
- test_prefix = re.sub(r'^' + self.main_name, '', test_prefix)
# NOTE: currently, it uses a comma for multi-value delimitter
test_subtests = self.get_subtests(sort_field, ",", with_order = True)
@@ -1374,7 +1372,7 @@ class TestList:
fname = testlist
fname = re.sub(r"[^\w\d]+", "-", fname)
- fname = directory + "/" + test_prefix + fname + ".testlist"
+ fname = directory + "/" + fname + ".testlist"
with open(fname, 'w', encoding='utf8') as handler:
for sub in test_subtests[test]:
--
2.41.0
More information about the igt-dev
mailing list