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
lldb/test/API/lang/objc-gnustep/data-formatters/TestGNUstepDataFormatters.py
lldb/test/API/lang/objc-gnustep/dynamic-value/TestGNUstepDynamicValue.py
lldb/test/API/lang/objc-gnustep/exceptions/TestGNUstepExceptions.py
lldb/packages/Python/lldbsuite/test/builders/builder.py
lldb/packages/Python/lldbsuite/test/configuration.py
lldb/packages/Python/lldbsuite/test/dotest.py
lldb/packages/Python/lldbsuite/test/dotest_args.py
lldb/packages/Python/lldbsuite/test/test_categories.py lldb/test/API/lit.cfg.py
lldb/test/Shell/helper/build.py lldb/test/Shell/lit.cfg.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
--- packages/Python/lldbsuite/test/dotest.py 2026-08-19 18:20:24.000000 +0000
+++ packages/Python/lldbsuite/test/dotest.py 2026-08-19 18:28:32.025073 +0000
@@ -73,11 +73,12 @@
def usage(parser):
parser.print_help()
if configuration.verbose > 0:
- print("""
+ print(
+ """
Examples:
This is an example of using the -f option to pinpoint to a specific test class
and test method to be run:
@@ -164,11 +165,12 @@
By default, logs from successful runs are deleted. Use the --log-success flag
to create reference logs for debugging.
$ ./dotest.py --log-success
-""")
+"""
+ )
sys.exit(0)
def parseExclusion(exclusion_file):
"""Parse an exclusion file, of the following format, where
@@ -947,16 +949,18 @@
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,
)
- _, stderr = p.communicate("""
+ _, stderr = p.communicate(
+ """
#include <yvals_core.h>
#ifndef _MSVC_STL_VERSION
#error _MSVC_STL_VERSION not defined
#endif
- """)
+ """
+ )
if not p.returncode:
return True, "Compiling with MSVC STL"
return (False, f"Not compiling with MSVC STL: {stderr}")
--- test/Shell/lit.cfg.py 2026-08-19 18:20:24.000000 +0000
+++ test/Shell/lit.cfg.py 2026-08-19 18:28:32.567524 +0000
@@ -172,10 +172,11 @@
config.available_features.add("system-debugserver")
if config.have_lldb_server:
config.available_features.add("lldb-server")
+
# Same spelling as lldb/test/Shell/CMakeLists.txt and lldb/test/API/lit.cfg.py.
def targets_mingw(triple):
return re.search(r"windows-gnu|mingw", triple or "") is not None
@@ -206,13 +207,11 @@
argv = [tool("llvm-nm"), "--dynamic", "--defined-only", path]
if not argv[0]:
lit_config.warning("no tool to read exports from " + path)
continue
try:
- probe = subprocess.run(
- argv, capture_output=True, text=True, timeout=60
- )
+ probe = subprocess.run(argv, capture_output=True, text=True,
timeout=60)
except (OSError, subprocess.SubprocessError) as e:
lit_config.warning("could not read exports from %s: %s" %
(path, e))
continue
if probe.returncode != 0:
lit_config.warning("could not read exports from " + path)
``````````
</details>
https://github.com/llvm/llvm-project/pull/216709
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits