You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Python3] Use correct Python version for LLDB-related tests (#33181)
* Use the correct Python executable to match LLDB
The linux-fatal-backtrace script needs to run with an LLDB
module loaded into Python. This in turn requires that the
test be run with the exact same Python version as was used
by LLDB (not just the same Python module directory). This
can get confused on systems with multiple versions of Python
installed.
This replaces `lldb-python-path` (the Python module directory path)
with `lldb-python` (which is the correct Python version run with
the LLDB path). This should ensure that this test is always
run with the same Python version and module that LLDB used.
* Use consistent braces for the lldb-python substitution
* Use os.path utilities to dissect paths
* Allow `python3` as a path identifier
Previous code required a decimal point before it would
recognize a path component as a Python version identifier,
so it would accept `python2.7` but not `python3`.
0 commit comments