summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
blob: 1a350006c33f63d8693e07603fd8d003e3df3793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python

import json
import os
import subprocess


device_id = os.environ.get('SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER')
if not device_id:
    raise EnvironmentError('Specify SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER to select which simulator to use.')

boot_cmd = ['xcrun', 'simctl', 'bootstatus', device_id, '-b']
subprocess.check_call(boot_cmd)
# TODO(rdar58118442): we start the simulator here, but we never tear it down


print(json.dumps({"env": {}}))
OpenPOWER on IntegriCloud