Example #1
0
 def launchProcess(self, cmd, stdout, stderr, env, cwd):
     try:
         # This returns 1 even when tests pass - hardcode returncode to 0 (bug 773703)
         outputFile = XPCShellRemote.launchProcess(self, cmd, stdout, stderr, env, cwd)
         self.shellReturnCode = 0
     except DMError:
         self.shellReturnCode = -1
         outputFile = "xpcshelloutput"
         f = open(outputFile, "a")
         f.write("\n%s" % traceback.format_exc())
         f.close()
     return outputFile
Example #2
0
 def launchProcess(self, cmd, stdout, stderr, env, cwd):
     try:
         # This returns 1 even when tests pass - hardcode returncode to 0 (bug 773703)
         outputFile = XPCShellRemote.launchProcess(self, cmd, stdout,
                                                   stderr, env, cwd)
         self.shellReturnCode = 0
     except DMError:
         self.shellReturnCode = -1
         outputFile = "xpcshelloutput"
         f = open(outputFile, "a")
         f.write("\n%s" % traceback.format_exc())
         f.close()
     return outputFile