Skip to content

Commit 3944780

Browse files
committed
[lldb] Skip TestAppleSimulatorOSType is simulator isn't available
Skip TestAppleSimulatorOSType is simulator isn't available for the given platform.
1 parent 65a7ebf commit 3944780

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ def check_simulator_ostype(self, sdk, platform_name, arch=platform.machine()):
4646
# Stop searching in this runtime
4747
break
4848

49-
# Launch the process using simctl
50-
self.assertIsNotNone(deviceUDID, 'Could not find a simulator for {} ({})'.format(platform_name, arch))
49+
if not deviceUDID:
50+
self.skipTest('Could not find a simulator for {} ({})'.format(platform_name, arch))
5151

52+
# Launch the process using simctl
5253
exe_name = 'test_simulator_platform_{}'.format(platform_name)
5354
sdkroot = lldbutil.get_xcode_sdk_root(sdk)
5455
vers = lldbutil.get_xcode_sdk_version(sdk)

0 commit comments

Comments
 (0)