Skip to content

Commit 95b25e3

Browse files
authored
[SYCL][E2E] Allow specification of xfail features in lit.local.cfg (#20914)
With this, in a `lit.local.cfg` you can do `config.xfail_features += ['gpu-intel-dg2']` instead of having to add it to every test. There's already a way to do it for `UNSUPPORTED` and `REQUIRES`. Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
1 parent 79cf937 commit 95b25e3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sycl/test-e2e/format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def parseTestScript(self, test):
7676
assert parsed["DEFINE:"] == script
7777
assert parsed["REDEFINE:"] == script
7878

79+
test.xfails += test.config.xfail_features
7980
test.xfails += parsed["XFAIL:"] or []
8081
test.requires += test.config.required_features
8182
test.requires += parsed["REQUIRES:"] or []

sycl/test-e2e/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
# To be filled by lit.local.cfg files.
5656
config.required_features = []
5757
config.unsupported_features = []
58+
config.xfail_features = []
5859

5960
# test-mode: Set if tests should run normally or only build/run
6061
config.test_mode = lit_config.params.get("test-mode", "full")

0 commit comments

Comments
 (0)