[Lldb-commits] [lldb] [lldb] [scripting bridge] 167388 chore: add api to return arch name for target (PR #168273)
via lldb-commits
lldb-commits at lists.llvm.org
Sun Nov 16 10:03:36 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 origin/main...HEAD lldb/examples/python/templates/scripted_process.py lldb/test/API/python_api/target/TestTargetAPI.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
--- test/API/python_api/target/TestTargetAPI.py 2025-11-16 17:59:24.000000 +0000
+++ test/API/python_api/target/TestTargetAPI.py 2025-11-16 18:03:04.627979 +0000
@@ -115,11 +115,11 @@
self.assertNotEqual(len(arch_name), 0, "Got an arch name string")
# Test consistency with triple.
triple = target.triple
if triple:
- self.assertEqual(triple.split("-")[0], arch_name)
+ self.assertEqual(triple.split("-")[0], arch_name)
def test_get_ABIName(self):
d = {"EXE": "b.out"}
self.build(dictionary=d)
self.setTearDownCleanup(dictionary=d)
``````````
</details>
https://github.com/llvm/llvm-project/pull/168273
More information about the lldb-commits
mailing list