diff options
author | Benoit Foucher <benoit@zeroc.com> | 2019-10-24 17:20:41 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2019-10-24 17:20:41 +0200 |
commit | 3626a1bcdc0707b940db1d869359db59b2383074 (patch) | |
tree | 635ef1d94080e7c846efbf3e57468d32c55cff77 /scripts/Util.py | |
parent | Fixes to improve testing speed (diff) | |
download | ice-3626a1bcdc0707b940db1d869359db59b2383074.tar.bz2 ice-3626a1bcdc0707b940db1d869359db59b2383074.tar.xz ice-3626a1bcdc0707b940db1d869359db59b2383074.zip |
Fixed minor testing issues
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 58875f475e2..d3404bfdd0c 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -2260,6 +2260,14 @@ class RemoteProcessController(ProcessController): if ident in self.processControllerProxies: return self.processControllerProxies[ident] + # If the controller isn't up after 30s, we restart it. With the iOS simulator, + # it's not uncommon to get Springoard crashes when starting the controller. + if nRetry == 6: + sys.stdout.write("controller application unreachable, restarting... ") + sys.stdout.flush() + self.restartControllerApp(current, ident) + print("ok") + raise RuntimeError("couldn't reach the remote controller `{0}'".format(ident)) def setProcessController(self, proxy): |