summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-01-13 09:03:17 +0100
committerBenoit Foucher <benoit@zeroc.com>2017-01-13 09:03:17 +0100
commit5acc92ec863623aefcaa03e0156eb988eca4c813 (patch)
tree3750d4da250b271167c97a44b6f6ff9851dea5ec /scripts/Util.py
parentAdd support for deprecate Slice metadata in slice2objc (diff)
downloadice-5acc92ec863623aefcaa03e0156eb988eca4c813.tar.bz2
ice-5acc92ec863623aefcaa03e0156eb988eca4c813.tar.xz
ice-5acc92ec863623aefcaa03e0156eb988eca4c813.zip
Added shutdown of the simulator
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index bc3ee61b9da..6597314b5fd 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -1936,14 +1936,19 @@ class iOSSimulatorProcessController(RemoteProcessController):
def destroy(self, driver):
RemoteProcessController.destroy(self, driver)
+
+ sys.stdout.write("shutting down simulator... ")
+ sys.stdout.flush()
+ try:
+ run("xcrun simctl shutdown \"{0}\"".format(self.simulatorID))
+ except:
+ pass
+ print("ok")
+
if self.simulatorID:
sys.stdout.write("destroying simulator... ")
sys.stdout.flush()
try:
- run("xcrun simctl shutdown \"{0}\"".format(self.simulatorID))
- except:
- pass
- try:
run("xcrun simctl delete \"{0}\"".format(self.simulatorID))
except:
pass