[Lldb-commits] [lldb] [lldb] Support expectedFlakey decorator in dotest (PR #129817)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 4 18:43:02 PST 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 11b9466c04db4da7439fc1d9d8ba7241a9d68705...1d1c3a6bf52ba47a4ff4c13e99209a6ae3d983b3 lldb/packages/Python/lldbsuite/test/decorators.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- decorators.py 2025-03-05 02:34:40.000000 +0000
+++ decorators.py 2025-03-05 02:42:34.414204 +0000
@@ -532,11 +532,11 @@
# if it has not yet passed.
def expectedFlakey(expected_fn, bugnumber=None, num_retries=3):
def expectedFailure_impl(func):
@wraps(func)
def wrapper(*args, **kwargs):
- for i in range(1, num_retries+1):
+ for i in range(1, num_retries + 1):
try:
return func(*args, **kwargs)
except Exception:
logging.warning(
f"expectedFlakey: test {func} failed attempt ({i}/{num_retries})"
``````````
</details>
https://github.com/llvm/llvm-project/pull/129817
More information about the lldb-commits
mailing list