[llvm] [BOLT][AArch64] Skip gadget pacret test on RHEL8 (PR #145527)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 08:13:49 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 bolt/test/lit.cfg.py
``````````

</details>

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

``````````diff
--- lit.cfg.py	2025-06-24 15:03:05.000000 +0000
+++ lit.cfg.py	2025-06-24 15:13:24.286113 +0000
@@ -73,13 +73,12 @@
     config.available_features.add("gnu_ld")
 
 if lit.util.which("fuser"):
     config.available_features.add("fuser")
 
-rhel_release="/etc/redhat-release"
-if os.path.exists(rhel_release) and \
-    "release 8" in open(rhel_release).read().lower():
+rhel_release = "/etc/redhat-release"
+if os.path.exists(rhel_release) and "release 8" in open(rhel_release).read().lower():
     config.available_features.add("rhel8")
 
 llvm_config.use_default_substitutions()
 
 llvm_config.config.environment["CLANG"] = config.bolt_clang

``````````

</details>


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


More information about the llvm-commits mailing list