[llvm] [lit] Support wildcard in --xfail-not option (PR #151191)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 14:08:05 PDT 2025
================
@@ -238,7 +238,11 @@ def mark_xfail(selected_tests, opts):
test_full_name = t.getFullName()
if test_file in opts.xfail or test_full_name in opts.xfail:
t.xfails += "*"
- if test_file in opts.xfail_not or test_full_name in opts.xfail_not:
+ if (
+ test_file in opts.xfail_not
+ or test_full_name in opts.xfail_not
+ or opts.xfail_not == [".*"]
----------------
mtrofin wrote:
I can switch it to `*` then.
> What happens if this is just one of multiple --xfail-not items? It looks like this implementation will not recognize it unless it's the only item.
Intentionally so. It's not meant to be a general-purpose thing. If it's one of many items, it will have no effect, since the other checks (`in`) won't match such a name.
https://github.com/llvm/llvm-project/pull/151191
More information about the llvm-commits
mailing list