[compiler-rt] b94afc1 - iOS simulator testing: replace `simctl bootstatus` with boot+shutdown
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 15:20:45 PDT 2020
Author: Julian Lettner
Date: 2020-04-02T14:45:54-07:00
New Revision: b94afc19ebccb77ad3140386d11920bd8885f2ed
URL: https://github.com/llvm/llvm-project/commit/b94afc19ebccb77ad3140386d11920bd8885f2ed
DIFF: https://github.com/llvm/llvm-project/commit/b94afc19ebccb77ad3140386d11920bd8885f2ed.diff
LOG: iOS simulator testing: replace `simctl bootstatus` with boot+shutdown
rdar://59643443
Added:
Modified:
compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
Removed:
################################################################################
diff --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
index 1a350006c33f..0cfec6b5777b 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
@@ -9,8 +9,9 @@
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)
+DEVNULL = open(os.devnull, 'w')
+subprocess.call(['xcrun', 'simctl', 'shutdown', device_id], stderr=DEVNULL)
+subprocess.check_call(['xcrun', 'simctl', 'boot', device_id])
# TODO(rdar58118442): we start the simulator here, but we never tear it down
More information about the llvm-commits
mailing list