[llvm-branch-commits] [lit] Add support for readfile to external shell (PR #159431)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 17 12:21:24 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/utils/lit/tests/shtest-readfile-external.py llvm/utils/lit/lit/TestRunner.py llvm/utils/lit/tests/shtest-readfile.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/TestRunner.py	2025-09-17 19:18:54.000000 +0000
+++ lit/TestRunner.py	2025-09-17 19:21:02.959668 +0000
@@ -2410,12 +2410,14 @@
 
     return lit.Test.Result(
         status, output, attempts=i + 1, max_allowed_attempts=attempts
     )
 
+
 def _expandLateSubstitutionsExternal(commandLine):
     filePaths = []
+
     def _replaceReadFile(match):
         filePath = match.group(1)
         filePaths.append(filePath)
         return "$(cat %s)" % filePath
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/159431


More information about the llvm-branch-commits mailing list