[Lldb-commits] [lldb] [lldb-dap][test] Propagate the LLDBDA_RUN_AS_SERVER environment (PR #232792)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 16 08:03:02 PDT 2026
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/232792
It previously only worked when calling `lldb-dotest` directly.
>From 945ac4d261aaf46d6bc57114a9b6c22fe7645bdb Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <e_ezike at apple.com>
Date: Fri, 16 Oct 2026 15:59:42 +0100
Subject: [PATCH] [lldb-dap][test] Propagate the LLDBDA_RUN_AS_SERVER
environment
It previously only worked when calling `lldb-dotest` directly.
---
lldb/test/API/lit.cfg.py | 4 ++++
1 file changed, 4 insertions(+)
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"]:
More information about the lldb-commits
mailing list