Bug 1482887 - Remote automation should kill already running instances rather than dying, r=gbrown.

This commit is contained in:
Bob Clary 2018-08-18 10:47:12 -07:00
Родитель fbae2d44ea
Коммит 129bad1f48
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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