[llvm] [llvm][llvm-lit] Enabled lit internal shell for llvm test suite (PR #106324)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 19:01:49 PDT 2024
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 fa089efa6c70f4da8618f2f41ee9c7db86e2b0e0...b93cb257d77b8fc2f7253f0853019e04034ac22e llvm/test/lit.cfg.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- lit.cfg.py 2024-08-28 01:48:44.000000 +0000
+++ lit.cfg.py 2024-08-28 02:01:24.168838 +0000
@@ -21,11 +21,11 @@
# We prefer the lit internal shell which provides a better user experience on failures
# unless the user explicitly disables it with LIT_USE_INTERNAL_SHELL=0 env var.
use_lit_shell = True
lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
if lit_shell_env:
- use_lit_shell = not lit.util.pythonize_bool(lit_shell_env)
+ use_lit_shell = not lit.util.pythonize_bool(lit_shell_env)
config.test_format = lit.formats.ShTest(execute_external=not use_lit_shell)
# FIXME: Tests that REQUIRES: shell are unsupported by the lit internal shell
if use_lit_shell:
``````````
</details>
https://github.com/llvm/llvm-project/pull/106324
More information about the llvm-commits
mailing list