[llvm] [Offload] Add check-offload-unit for liboffload unittests (PR #137312)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 03:58:06 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 offload/test/unit/lit.cfg.py
``````````

</details>

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

``````````diff
--- lit.cfg.py	2025-04-25 10:31:44.000000 +0000
+++ lit.cfg.py	2025-04-25 10:57:36.604943 +0000
@@ -11,11 +11,11 @@
 config.name = "Offload-Unit-{}".format(config.offload_platform)
 
 # suffixes: A list of file extensions to treat as test files.
 config.suffixes = []
 
-config.environment = { "OFFLOAD_UNITTEST_PLATFORM" : config.offload_platform}
+config.environment = {"OFFLOAD_UNITTEST_PLATFORM": config.offload_platform}
 
 # test_source_root: The root path where tests are located.
 # test_exec_root: The root path where tests should be run.
 config.test_exec_root = os.path.join(config.library_dir, "unittests")
 config.test_source_root = config.test_exec_root

``````````

</details>


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


More information about the llvm-commits mailing list