From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 5/5] scripts/test_list.py: use different types for include/exclude
Date: Thu, 2 Nov 2023 14:06:27 +0100 [thread overview]
Message-ID: <20231102130957.307435-6-mauro.chehab@linux.intel.com> (raw)
In-Reply-To: <20231102130957.307435-1-mauro.chehab@linux.intel.com>
From: Mauro Carvalho Chehab <mchehab@kernel.org>
The type of match for include/exclude may be different. So,
split it into two separate arguments.
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
scripts/test_list.py | 12 +++++++-----
tests/intel/kms_test_config.json | 2 +-
tests/intel/xe_test_config.json | 2 +-
3 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/scripts/test_list.py b/scripts/test_list.py
index a7758d5ecb91..13f788783483 100644
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -335,7 +335,9 @@ class TestList:
testlist = {}
for value in update["include"]:
for name in value.keys():
- self.read_testlist(update, field, item, testlist, name, cfg_path + value[name])
+ match_type = update.get("include-type", "subtest-match")
+
+ self.read_testlist(update, match_type, field, item, testlist, name, cfg_path + value[name])
update["include"] = testlist
@@ -344,7 +346,9 @@ class TestList:
testlist = {}
for value in update["exclude"]:
for name in value.keys():
- self.read_testlist(update, field, item, testlist, name, cfg_path + value[name])
+ match_type = update.get("exclude-type", "subtest-match")
+
+ self.read_testlist(update, match_type, field, item, testlist, name, cfg_path + value[name])
update["exclude"] = testlist
@@ -448,9 +452,7 @@ class TestList:
self.__add_field(key, sublevel, hierarchy_level, field[key])
- def read_testlist(self, update, field, item, testlist, name, filename):
-
- match_type = update.get("type", "subtest-match")
+ def read_testlist(self, update, match_type, field, item, testlist, name, filename):
match_type_regex = set(["regex", "regex-ignorecase"])
match_type_str = set(["subtest-match"])
diff --git a/tests/intel/kms_test_config.json b/tests/intel/kms_test_config.json
index e94737981ab7..d38562c02ed6 100644
--- a/tests/intel/kms_test_config.json
+++ b/tests/intel/kms_test_config.json
@@ -24,7 +24,7 @@
"description": "Defines what category of testlist it belongs",
"update-from-file": {
"append-value-if-not-excluded": "Xe FULL, i915 FULL",
- "match-type": "subtest-match",
+ "exclude-type": "regex-ignorecase",
"include": [
{ "i915 BAT": "../intel-ci/fast-feedback.testlist" },
{ "i915 BAT chamelium": "../intel-ci/fast-feedback-chamelium-only.testlist" },
diff --git a/tests/intel/xe_test_config.json b/tests/intel/xe_test_config.json
index 44c3dd4b4fee..a2d764307831 100644
--- a/tests/intel/xe_test_config.json
+++ b/tests/intel/xe_test_config.json
@@ -34,7 +34,7 @@
"description": "Defines what category of testlist it belongs",
"default-testlist": "FULL",
"update-from-file": {
- "type": "subtest-match",
+ "exclude-type": "regex-ignorecase",
"append-value-if-not-excluded": "Xe FULL",
"include": [
{ "Xe BAT": "../intel-ci/xe-fast-feedback.testlist" }
--
2.41.0
next prev parent reply other threads:[~2023-11-02 13:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-02 13:06 [igt-dev] [PATCH i-g-t 0/5] Fix a series of issues while handling testlist Mauro Carvalho Chehab
2023-11-02 13:06 ` [igt-dev] [PATCH i-g-t 1/5] scripts/test_list.py: better parse list of tests Mauro Carvalho Chehab
2023-11-02 14:57 ` Kamil Konieczny
2023-11-02 13:06 ` [igt-dev] [PATCH i-g-t 2/5] scripts/test_list.py: speedup update testlist logic Mauro Carvalho Chehab
2023-11-02 14:37 ` Kamil Konieczny
2023-11-02 13:06 ` [igt-dev] [PATCH i-g-t 3/5] intel/*.json: better handle FULL testlist Mauro Carvalho Chehab
2023-11-02 14:39 ` Kamil Konieczny
2023-11-02 13:06 ` [igt-dev] [PATCH i-g-t 4/5] scripts/test_list.py: fix regex filtering logic Mauro Carvalho Chehab
2023-11-02 14:49 ` Kamil Konieczny
2023-11-02 13:06 ` Mauro Carvalho Chehab [this message]
2023-11-02 14:52 ` [igt-dev] [PATCH i-g-t 5/5] scripts/test_list.py: use different types for include/exclude 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=20231102130957.307435-6-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