[Lldb-commits] [lldb] [lldb][test] Set target OS for API tests in case of remote testing (PR #96654)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 8 05:14:24 PDT 2024


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 857700ff6fb9f9f653c3788445df06db07e7bb59...c107d5d43ed4f696bb2095b2a7d32ca59696f220 lldb/packages/Python/lldbsuite/test/lldbplatformutil.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- lldbplatformutil.py	2024-07-08 11:24:08.000000 +0000
+++ lldbplatformutil.py	2024-07-08 12:14:00.945465 +0000
@@ -103,15 +103,16 @@
         dictionary["PIE"] = 1
     elif platformIsDarwin():
         dictionary["OS"] = "Darwin"
     else:
         # Provide uname-like platform name
-        platform_name_to_uname = { "linux": "Linux",
-                "netbsd": "NetBSD",
-                "freebsd": "FreeBSD",
-                "windows": "Windows_NT",
-                }
+        platform_name_to_uname = {
+            "linux": "Linux",
+            "netbsd": "NetBSD",
+            "freebsd": "FreeBSD",
+            "windows": "Windows_NT",
+        }
         dictionary["OS"] = platform_name_to_uname[getPlatform()]
         dictionary["HOST_OS"] = platform_name_to_uname[getHostPlatform()]
     return dictionary
 
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/96654


More information about the lldb-commits mailing list