[Lldb-commits] [lldb] [lldb][test] Unify and extend test infrastructure for checking CPU features (PR #153914)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 15 19:39:31 PDT 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 HEAD~1...HEAD lldb/packages/Python/lldbsuite/test/cpu_feature.py lldb/packages/Python/lldbsuite/test/decorators.py lldb/packages/Python/lldbsuite/test/lldbtest.py lldb/test/API/commands/register/register/register_command/TestRegisters.py lldb/test/API/macosx/sme-registers/TestSMERegistersDarwin.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- packages/Python/lldbsuite/test/lldbtest.py 2025-08-16 02:13:36.000000 +0000
+++ packages/Python/lldbsuite/test/lldbtest.py 2025-08-16 02:39:05.883924 +0000
@@ -1345,11 +1345,15 @@
def isAArch64SMEFA64(self):
# smefa64 allows the use of the full A64 instruction set in streaming
# mode. This is required by certain test programs to setup register
# state.
- return self.isAArch64() and self.isSupported(cpu_feature.SME) and self.isSupported(cpu_feature.SME_FA64)
+ return (
+ self.isAArch64()
+ and self.isSupported(cpu_feature.SME)
+ and self.isSupported(cpu_feature.SME_FA64)
+ )
def isAArch64MTE(self):
return self.isAArch64() and self.isSupported(cpu_feature.MTE)
def isAArch64MTEStoreOnly(self):
``````````
</details>
https://github.com/llvm/llvm-project/pull/153914
More information about the lldb-commits
mailing list