[Lldb-commits] [lldb] c56bb12 - [lldb] make lit use the same PYTHONHOME for building and running the API tests (#154396)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 20 06:10:52 PDT 2025
Author: Charles Zablit
Date: 2025-08-20T14:10:50+01:00
New Revision: c56bb124e31da76d09cf6419a4a6ca3bd38474c4
URL: https://github.com/llvm/llvm-project/commit/c56bb124e31da76d09cf6419a4a6ca3bd38474c4
DIFF: https://github.com/llvm/llvm-project/commit/c56bb124e31da76d09cf6419a4a6ca3bd38474c4.diff
LOG: [lldb] make lit use the same PYTHONHOME for building and running the API tests (#154396)
When testing LLDB, we want to make sure to use the same Python as the
one we used to build it.
We already did this in https://github.com/llvm/llvm-project/pull/143183
for the Unit and Shell tests. This patch does the same thing for the API
tests as well.
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 7ab9749f6266d..dcff8687fb4ca 100644
--- a/lldb/test/API/lit.cfg.py
+++ b/lldb/test/API/lit.cfg.py
@@ -353,6 +353,7 @@ def delete_module_cache(path):
# Some steps required to initialize the tests dynamically link with python.dll
# and need to know the location of the Python libraries. This ensures that we
# use the same version of Python that was used to build lldb to run our tests.
+config.environment["PYTHONHOME"] = config.python_root_dir
config.environment["PATH"] = os.path.pathsep.join(
(config.python_root_dir, config.environment.get("PATH", ""))
)
More information about the lldb-commits
mailing list