From: Jonas Devlieghere Date: Wed, 29 Jun 2022 22:10:14 +0000 (-0700) Subject: [lldb] Skip TestAppleSimulatorOSType is simulator isn't available X-Git-Tag: upstream/15.0.7~3089 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3944780dd89018e7e12bf45bb835ac7f54c40181;p=platform%2Fupstream%2Fllvm.git [lldb] Skip TestAppleSimulatorOSType is simulator isn't available Skip TestAppleSimulatorOSType is simulator isn't available for the given platform. --- diff --git a/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py b/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py index 149902e..1f3afb1 100644 --- a/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py +++ b/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py @@ -46,9 +46,10 @@ class TestAppleSimulatorOSType(gdbremote_testcase.GdbRemoteTestCaseBase): # Stop searching in this runtime break - # Launch the process using simctl - self.assertIsNotNone(deviceUDID, 'Could not find a simulator for {} ({})'.format(platform_name, arch)) + if not deviceUDID: + self.skipTest('Could not find a simulator for {} ({})'.format(platform_name, arch)) + # Launch the process using simctl exe_name = 'test_simulator_platform_{}'.format(platform_name) sdkroot = lldbutil.get_xcode_sdk_root(sdk) vers = lldbutil.get_xcode_sdk_version(sdk)