From ffbae193d389c1a20b6cc4b47887250cc365ee85 Mon Sep 17 00:00:00 2001 From: Joel Maher Date: Sat, 14 Jan 2012 08:24:17 -0500 Subject: [PATCH] Bug 717725 - sutagent 'exec' waits for 'am instrument...' command to finish instead of letting it run in the background. r=gbrown --- build/mobile/remoteautomation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/mobile/remoteautomation.py b/build/mobile/remoteautomation.py index 7702c295841f..1fa26b5ee021 100644 --- a/build/mobile/remoteautomation.py +++ b/build/mobile/remoteautomation.py @@ -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