diff --git a/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py b/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py index 149902e3bb5c1..1f3afb1d404ce 100644 --- a/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py +++ b/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py @@ -46,9 +46,10 @@ def check_simulator_ostype(self, sdk, platform_name, arch=platform.machine()): # 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)