[libc-commits] [libc] [libc] Improve lit test discovery and execution (PR #192993)

via libc-commits libc-commits at lists.llvm.org
Mon Apr 20 07:57:18 PDT 2026


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 libc/utils/libctest/format.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
--- format.py	2026-04-20 14:55:00.000000 +0000
+++ format.py	2026-04-20 14:56:43.112640 +0000
@@ -97,11 +97,15 @@
         else:
             return False
         if not os.path.isfile(filepath):
             return False
         # GPU binaries are not host-executable but run via an emulator, so ignore X_OK if emulator is set.
-        if not kIsWindows and not os.access(filepath, os.X_OK) and not getattr(localConfig, 'libc_crosscompiling_emulator', None):
+        if (
+            not kIsWindows
+            and not os.access(filepath, os.X_OK)
+            and not getattr(localConfig, "libc_crosscompiling_emulator", None)
+        ):
             return False
         return True
 
     def _getParamsPath(self, test_path):
         params_path = test_path + ".params"

``````````

</details>


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


More information about the libc-commits mailing list