[Lldb-commits] [lldb] 4636b93 - [lldb] Improve error reporting from TestAppleSimulatorOSType.py

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 8 11:47:31 PDT 2022


Author: Jonas Devlieghere
Date: 2022-06-08T11:47:26-07:00
New Revision: 4636b93044faf1fbf54139e872af4856adafe435

URL: https://github.com/llvm/llvm-project/commit/4636b93044faf1fbf54139e872af4856adafe435
DIFF: https://github.com/llvm/llvm-project/commit/4636b93044faf1fbf54139e872af4856adafe435.diff

LOG: [lldb] Improve error reporting from TestAppleSimulatorOSType.py

When we can't find a simulator, report the platform and architecture in
the error message.

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 beb62f1ebe1a5..a9fe3af3d21f1 100644
--- a/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py
+++ b/lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py
@@ -49,7 +49,7 @@ def check_simulator_ostype(self, sdk, platform_name, arch=platform.machine()):
                 break
 
         # Launch the process using simctl
-        self.assertIsNotNone(deviceUDID)
+        self.assertIsNotNone(deviceUDID, 'Could not find a simulator for {} ({})'.format(platform_name, arch))
 
         exe_name = 'test_simulator_platform_{}'.format(platform_name)
         sdkroot = lldbutil.get_xcode_sdk_root(sdk)


        


More information about the lldb-commits mailing list