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")