[lldb] Skip TestAppleSimulatorOSType is simulator isn't available
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 29 Jun 2022 22:10:14 +0000 (15:10 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 29 Jun 2022 22:10:16 +0000 (15:10 -0700)
Skip TestAppleSimulatorOSType is simulator isn't available for the given
platform.

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

index 149902e..1f3afb1 100644 (file)
@@ -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)