[llvm] [profcheck] Change the FileCheck substitute command (PR #156985)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 4 16:53:28 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 origin/main...HEAD llvm/test/lit.cfg.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- lit.cfg.py 2025-09-04 23:41:48.000000 +0000
+++ lit.cfg.py 2025-09-04 23:52:55.453879 +0000
@@ -45,11 +45,11 @@
# substitute FileCheck because llvm-reduce expects FileCheck in these tests.
# It's not really possible to exclude these tests from the command substitution,
# so we just exclude llvm-reduce tests from this config altogether. This should
# be fine though as profcheck config tests are mostly concerned with opt.
if config.enable_profcheck:
- config.excludes = config.excludes + ["llvm-reduce"]
+ config.excludes = config.excludes + ["llvm-reduce"]
# test_source_root: The root path where tests are located.
config.test_source_root = os.path.dirname(__file__)
# test_exec_root: The root path where tests should be run.
``````````
</details>
https://github.com/llvm/llvm-project/pull/156985
More information about the llvm-commits
mailing list