diff options
author | Muhammad Omair Javaid <omair.javaid@linaro.org> | 2021-06-28 21:14:17 +0000 |
---|---|---|
committer | Muhammad Omair Javaid <omair.javaid@linaro.org> | 2021-06-28 21:37:12 +0000 |
commit | 1fa70235856962fae723d97cb39b47da6eb9666e (patch) | |
tree | f212dd4be55aeef1082527d4c8fe0a1fdc05596f /lldb/packages/Python/lldbsuite/test | |
parent | 8cd35ad854ab4458fd509447359066ea3578b494 (diff) | |
download | llvm-1fa70235856962fae723d97cb39b47da6eb9666e.zip llvm-1fa70235856962fae723d97cb39b47da6eb9666e.tar.gz llvm-1fa70235856962fae723d97cb39b47da6eb9666e.tar.bz2 |
[LLDB] dotest.py set selected_platform on remote connection
This patch fixes a bug in dotest.py where lldb.selected_platform was
being set to host platform even after a successful connection to a
remote platform via platform url. This patch fixes this behavior and
sets selected_platform to remote_platform after a successful connection.
This patch also removes target_platform variable from run_suite.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D105060
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 3e832d9..5c5583f 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -929,6 +929,7 @@ def run_suite(): err = lldb.remote_platform.ConnectRemote(platform_connect_options) if err.Success(): print("Connected.") + lldb.selected_platform = lldb.remote_platform else: print("error: failed to connect to remote platform using URL '%s': %s" % ( configuration.lldb_platform_url, err)) @@ -958,9 +959,6 @@ def run_suite(): # Note that it's not dotest's job to clean this directory. lldbutil.mkdir_p(configuration.test_build_dir) - from . import lldbplatformutil - target_platform = lldbplatformutil.getPlatform() - checkLibcxxSupport() checkLibstdcxxSupport() checkWatchpointSupport() |