fjricci created this revision. fjricci added reviewers: clayborg, tfiala, zturner. fjricci added subscribers: lldb-commits, sas.
When running the test suite in platform mode, this test would use 'platform select host', which would cause the rest of the suite to stop running in platform mode. Instead, use 'platform select' to select the remote platform, if it exists. http://reviews.llvm.org/D21648 Files: packages/Python/lldbsuite/test/functionalities/object-file/TestImageListMultiArchitecture.py Index: packages/Python/lldbsuite/test/functionalities/object-file/TestImageListMultiArchitecture.py =================================================================== --- packages/Python/lldbsuite/test/functionalities/object-file/TestImageListMultiArchitecture.py +++ packages/Python/lldbsuite/test/functionalities/object-file/TestImageListMultiArchitecture.py @@ -39,5 +39,9 @@ self.runCmd("file {}".format(file_name)) self.match("image list -t -A", [expected_triple_and_arch_regex]) - # Revert to the host platform after all of this is done - self.runCmd("platform select host") + + # Revert to the original platform after all of this is done + if lldb.remote_platform: + self.runCmd('platform select %s' % lldb.remote_platform.GetName()) + else: + self.runCmd("platform select host")
Index: packages/Python/lldbsuite/test/functionalities/object-file/TestImageListMultiArchitecture.py =================================================================== --- packages/Python/lldbsuite/test/functionalities/object-file/TestImageListMultiArchitecture.py +++ packages/Python/lldbsuite/test/functionalities/object-file/TestImageListMultiArchitecture.py @@ -39,5 +39,9 @@ self.runCmd("file {}".format(file_name)) self.match("image list -t -A", [expected_triple_and_arch_regex]) - # Revert to the host platform after all of this is done - self.runCmd("platform select host") + + # Revert to the original platform after all of this is done + if lldb.remote_platform: + self.runCmd('platform select %s' % lldb.remote_platform.GetName()) + else: + self.runCmd("platform select host")
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits