Skip to content

Commit c56bb12

Browse files
[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 #143183 for the Unit and Shell tests. This patch does the same thing for the API tests as well.
1 parent 478b4b0 commit c56bb12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/test/API/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ def delete_module_cache(path):
353353
# Some steps required to initialize the tests dynamically link with python.dll
354354
# and need to know the location of the Python libraries. This ensures that we
355355
# use the same version of Python that was used to build lldb to run our tests.
356+
config.environment["PYTHONHOME"] = config.python_root_dir
356357
config.environment["PATH"] = os.path.pathsep.join(
357358
(config.python_root_dir, config.environment.get("PATH", ""))
358359
)

0 commit comments

Comments
 (0)