[Lldb-commits] [lldb] d42e422 - [lldb-dap][test] Propagate the LLDBDAP_RUN_AS_SERVER environment (#232792)

via lldb-commits lldb-commits at lists.llvm.org
Sat Oct 17 19:33:10 PDT 2026


Author: Ebuka Ezike
Date: 2026-10-18T03:33:05+01:00
New Revision: d42e42286d3026eac16bea56b7229ca979c6d913

URL: https://github.com/llvm/llvm-project/commit/d42e42286d3026eac16bea56b7229ca979c6d913
DIFF: https://github.com/llvm/llvm-project/commit/d42e42286d3026eac16bea56b7229ca979c6d913.diff

LOG: [lldb-dap][test] Propagate the LLDBDAP_RUN_AS_SERVER environment (#232792)

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

Added: 
    

Modified: 
    lldb/test/API/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py
index 774f6a0a45e0d6..517fb5bd5d4fb1 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"]:


        


More information about the lldb-commits mailing list