[Lldb-commits] [lldb] [LLDB] Fix write permission error in TestGlobalModuleCache.py (PR #76171)

via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 21 09:32:12 PST 2023


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 11140cc238b8c4124e6f9efacb1601f81da096a0...74ac76e175917e0354d998b3b3fdc2b30bf9251b lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py
``````````

</details>

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

``````````diff
--- TestGlobalModuleCache.py	2023-12-21 17:10:35.000000 +0000
+++ TestGlobalModuleCache.py	2023-12-21 17:32:04.533392 +0000
@@ -25,12 +25,16 @@
         # We are relying on the source file being newer than the .o file from
         # a previous build, so sleep a bit here to ensure that the touch is later.
         time.sleep(2)
         try:
             # Make sure dst is writeable before trying to write to it.
-            subprocess.run(['chmod', '777', dst], stdin=None,
-                           capture_output=False, encoding='utf-8')
+            subprocess.run(
+                ["chmod", "777", dst],
+                stdin=None,
+                capture_output=False,
+                encoding="utf-8",
+            )
             shutil.copy(src, dst)
         except:
             self.fail(f"Could not copy {src} to {dst}")
         Path(dst).touch()
 

``````````

</details>


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


More information about the lldb-commits mailing list