[Lldb-commits] [lldb] [lldb-dap][test] Propagate the LLDBDA_RUN_AS_SERVER environment (PR #232792)

via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 16 08:03:48 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Ebuka Ezike (da-viper)

<details>
<summary>Changes</summary>

It previously only worked when calling `lldb-dotest` directly.

---
Full diff: https://github.com/llvm/llvm-project/pull/232792.diff


1 Files Affected:

- (modified) lldb/test/API/lit.cfg.py (+4) 


``````````diff
diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py
index 774f6a0a45e0d..517fb5bd5d4fb 100644
--- a/lldb/test/API/lit.cfg.py
+++ b/lldb/test/API/lit.cfg.py
@@ -414,6 +414,10 @@ def delete_module_cache(path):
 if "XDG_CACHE_HOME" in os.environ:
     config.environment["XDG_CACHE_HOME"] = os.environ["XDG_CACHE_HOME"]
 
+# Propagate LLDBDAP_RUN_AS_SERVER to run the lldb-dap tests in server mode.
+if "LLDBDAP_RUN_AS_SERVER" in os.environ:
+    config.environment["LLDBDAP_RUN_AS_SERVER"] = os.environ["LLDBDAP_RUN_AS_SERVER"]
+
 # Transfer some environment variables into the tests on Windows build host.
 if platform.system() == "Windows":
     for v in ["SystemDrive"]:

``````````

</details>


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


More information about the lldb-commits mailing list