Skip to content

Commit

Permalink
[lldb] Skip TestAppleSimulatorOSType is simulator isn't available
Browse files Browse the repository at this point in the history
Skip TestAppleSimulatorOSType is simulator isn't available for the given
platform.
  • Loading branch information
JDevlieghere committed Jun 29, 2022
1 parent 65a7ebf commit 3944780
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py
Expand Up @@ -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)
Expand Down

0 comments on commit 3944780

Please sign in to comment.