зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1482887 - Remote automation should kill already running instances rather than dying, r=gbrown.
This commit is contained in:
Родитель
fbae2d44ea
Коммит
129bad1f48
|
@ -241,6 +241,10 @@ class RemoteAutomation(Automation):
|
|||
self.stdoutlen = 0
|
||||
self.utilityPath = None
|
||||
|
||||
if app and self.device.process_exist(app):
|
||||
print("remoteautomation.py %s is already running. Stopping...")
|
||||
self.device.stop_application(app, root=True)
|
||||
|
||||
self.counts = counts
|
||||
if self.counts is not None:
|
||||
self.counts['pass'] = 0
|
||||
|
|
Загрузка…
Ссылка в новой задаче