[libc-commits] [libc] [libc] Honor per-test timeout in lit test format (PR #193772)
via libc-commits
libc-commits at lists.llvm.org
Thu Apr 23 08:18:22 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-23 15:15:19.000000 +0000
+++ format.py 2026-04-23 15:17:48.291491 +0000
@@ -201,12 +201,11 @@
cmd_args, cwd=exec_dir, env=env, timeout=timeout
)
except lit.util.ExecuteCommandTimeoutException as e:
return (
lit.Test.TIMEOUT,
- f"{e.out}\n--\n"
- f"Reached timeout of {timeout} seconds",
+ f"{e.out}\n--\n" f"Reached timeout of {timeout} seconds",
)
if not exit_code:
return lit.Test.PASS, ""
``````````
</details>
https://github.com/llvm/llvm-project/pull/193772
More information about the libc-commits
mailing list