[iOS sim] Ensure simulator device is booted in iossim_prepare.py
authorJulian Lettner <julian.lettner@apple.com>
Mon, 16 Dec 2019 17:33:11 +0000 (09:33 -0800)
committerJulian Lettner <julian.lettner@apple.com>
Fri, 20 Dec 2019 21:44:01 +0000 (13:44 -0800)
commitd1783db9dbda78d04cd131a93978edf8f497e58b
treea5d03b89c365a4277f5c1c9025edb22beacf2f76
parent0378f3a90341d990236c44f297b923a32b35fab1
[iOS sim] Ensure simulator device is booted in iossim_prepare.py

Recent versions of the iOS simulator require that a "simulator device"
is booted before we can use `simctl spawn` (see iossim_run.py) to start
processes.

We can use `simctl bootstatus` to ensure that the simulator device
is booted before we run any tests via lit.  The `-b` option starts the
device if necessary.

Reviewed By: delcypher

Differential Revision: https://reviews.llvm.org/D71449
compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py