[llvm] [offload] Add CUDA_ROOT to path for unit tests (PR #214282)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 09:52:11 PDT 2026


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 origin/main...HEAD offload/test/unit/lit.cfg.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
--- lit.cfg.py	2026-08-05 16:16:12.000000 +0000
+++ lit.cfg.py	2026-08-05 16:51:35.778338 +0000
@@ -11,15 +11,17 @@
 config.name = "Offload-Unit"
 
 # suffixes: A list of file extensions to treat as test files.
 config.suffixes = []
 
+
 def prepend_executable_path(path):
     old_path = config.environment.get("PATH")
     config.environment["PATH"] = (
         f"{path}{os.path.pathsep}{old_path}" if old_path else path
     )
+
 
 # Add the tools bin dir to the search path so the JIT tests can
 # find it. Prefer the tools from the configured LLVM install or
 # bootstrapping build.
 if config.bin_llvm_tools_dir:

``````````

</details>


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


More information about the llvm-commits mailing list