[libcxx-commits] [libcxx] [libcxx][test] Create feature host-can-create-symlinks (PR #82204)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Feb 18 20:35:23 PST 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 dc94eb57e39a925a9672bfc4d7cba0fb0da874d8...d066a3abffebfa6502f71be2b66025483ca1b52c libcxx/utils/libcxx/test/features.py
``````````

</details>

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

``````````diff
--- features.py	2024-02-19 04:03:55.000000 +0000
+++ features.py	2024-02-19 04:35:15.700654 +0000
@@ -474,10 +474,11 @@
         name="buildhost=aix",
         when=lambda cfg: platform.system().lower().startswith("aix"),
     ),
 ]
 
+
 # Creation of symlinks require elevated privileges on Windows unless
 # Windows developer mode is enabled.
 def check_unprivileged_symlinks(cfg):
     if not platform.system().lower().startswith("windows"):
         return True
@@ -497,16 +498,18 @@
     finally:
         os.remove(temp_file_path)
         if os.path.exists(symlink_file_path):
             os.remove(symlink_file_path)
 
+
 DEFAULT_FEATURES += [
     Feature(
         name="host-can-create-symlinks",
         when=check_unprivileged_symlinks,
     )
 ]
+
 
 # Detect whether GDB is on the system, has Python scripting and supports
 # adding breakpoint commands. If so add a substitution to access it.
 def check_gdb(cfg):
     gdb_path = shutil.which("gdb")

``````````

</details>


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


More information about the libcxx-commits mailing list