Bug 717725 - sutagent 'exec' waits for 'am instrument...' command to finish instead of letting it run in the background. r=gbrown

This commit is contained in:
Joel Maher 2012-01-14 08:24:17 -05:00
Родитель d77d16d609
Коммит ffbae193d3
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -156,7 +156,10 @@ class RemoteAutomation(Automation):
self.stdoutlen = 0
self.proc = dm.launchProcess(cmd, stdout, cwd, env, True)
if (self.proc is None):
raise Exception("unable to launch process")
if cmd[0] == 'am':
self.proc = stdout
else:
raise Exception("unable to launch process")
exepath = cmd[0]
name = exepath.split('/')[-1]
self.procName = name