[Lldb-commits] [lldb] 3944780 - [lldb] Skip TestAppleSimulatorOSType is simulator isn't available
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 29 15:10:38 PDT 2022
Author: Jonas Devlieghere
Date: 2022-06-29T15:10:16-07:00
New Revision: 3944780dd89018e7e12bf45bb835ac7f54c40181
URL: https://github.com/llvm/llvm-project/commit/3944780dd89018e7e12bf45bb835ac7f54c40181
DIFF: https://github.com/llvm/llvm-project/commit/3944780dd89018e7e12bf45bb835ac7f54c40181.diff
LOG: [lldb] Skip TestAppleSimulatorOSType is simulator isn't available
Skip TestAppleSimulatorOSType is simulator isn't available for the given
platform.
Added:
Modified:
lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py
Removed:
################################################################################
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)
More information about the lldb-commits
mailing list