[llvm] [lit] Support wildcard in --xfail-not option (PR #151191)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 30 15:54:43 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD llvm/utils/lit/lit/Test.py llvm/utils/lit/lit/TestRunner.py llvm/utils/lit/lit/cl_arguments.py llvm/utils/lit/lit/main.py llvm/utils/lit/tests/xfail-cl.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- lit/Test.py 2025-07-30 22:51:40.000000 +0000
+++ lit/Test.py 2025-07-30 22:54:18.112521 +0000
@@ -244,14 +244,14 @@
# A list of conditions under which this test is expected to fail.
# Each condition is a boolean expression of features, or '*'.
# These can optionally be provided by test format handlers,
# and will be honored when the test result is supplied.
self.xfails = []
-
+
# Skip this test if it's xfail.
self.skip_xfail = False
-
+
# If true, ignore all items in self.xfails.
self.xfail_not = False
# A list of conditions that must be satisfied before running the test.
# Each condition is a boolean expression of features. All of them
--- lit/cl_arguments.py 2025-07-30 22:51:40.000000 +0000
+++ lit/cl_arguments.py 2025-07-30 22:54:18.894153 +0000
@@ -304,11 +304,11 @@
default=os.environ.get("LIT_XFAIL_NOT", ""),
)
selection_group.add_argument(
"--skip-xfail",
help="do not XFAIL tests with paths in the semicolon separated list.",
- default = False,
+ default=False,
action="store_true",
)
selection_group.add_argument(
"--num-shards",
dest="numShards",
``````````
</details>
https://github.com/llvm/llvm-project/pull/151191
More information about the llvm-commits
mailing list