From 3944780dd89018e7e12bf45bb835ac7f54c40181 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 29 Jun 2022 15:10:14 -0700 Subject: [PATCH] [lldb] Skip TestAppleSimulatorOSType is simulator isn't available Skip TestAppleSimulatorOSType is simulator isn't available for the given platform. --- lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.7.4