diff options
author | Frederic Riss <friss@apple.com> | 2019-03-07 22:12:03 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2019-03-07 22:12:03 +0000 |
commit | c525b36b434b61f863a0299e48fd8b6cecc691eb (patch) | |
tree | 5a4dca964fc71a254df00fcdb152168c69d52b93 /lldb/packages/Python | |
parent | 16d9a3a4b610dae05c9e9b0e7637c7abe8dfa4f3 (diff) | |
download | bcm5719-llvm-c525b36b434b61f863a0299e48fd8b6cecc691eb.tar.gz bcm5719-llvm-c525b36b434b61f863a0299e48fd8b6cecc691eb.zip |
Fix TestAppleSimulatorOSType.py with Xcode 10.2
It looks like the simctl tool shipped in Xcode10.2 changed the format of
its json output.
llvm-svn: 355644
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestAppleSimulatorOSType.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestAppleSimulatorOSType.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestAppleSimulatorOSType.py index cf01359fce8..ab01e44db4b 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestAppleSimulatorOSType.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestAppleSimulatorOSType.py @@ -29,7 +29,9 @@ class TestAppleSimulatorOSType(gdbremote_testcase.GdbRemoteTestCaseBase): if not platform in runtime.lower(): continue for device in devices: - if device['availability'] != '(available)': + if 'availability' in device and device['availability'] != '(available)': + continue + if 'isAvailable' in device and device['isAvailable'] != True: continue deviceUDID = device['udid'] break |