[dotest] Simplify logic to find the Python path
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 5 Oct 2020 23:35:23 +0000 (16:35 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 6 Oct 2020 02:04:33 +0000 (19:04 -0700)
commitf22496a9f4cabb97e735314b62731fedb2e01e50
treee297e49bf0a95b1968ab71d772b2457645de25ff
parentded79be63555f4e5bfdb0db27ef22b71fe568474
[dotest] Simplify logic to find the Python path

Simplify the logic of parsing the lldb -P output to find the python
path. This removes the special handling for the LLDB.framework case and
instead of pattern matching known errors focus on finding a directory
path that contains an __init__.py.

Differential revision: https://reviews.llvm.org/D88840
lldb/packages/Python/lldbsuite/test/dotest.py