mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
Bug 920728 - gdb won't start with mochitest-browser;r=ted
This commit is contained in:
parent
b8b0ad9ffd
commit
895adedf85
@ -917,7 +917,7 @@ class Mochitest(MochitestUtilsMixin):
|
||||
log.info("INFO | runtests.py | Application pid: %d", proc.pid)
|
||||
|
||||
# set process information on the output handler
|
||||
outputHandler.setProcess(proc, timeout)
|
||||
outputHandler.setProcess(proc if interactive else proc.proc, timeout)
|
||||
|
||||
if onLaunch is not None:
|
||||
# Allow callers to specify an onLaunch callback to be fired after the
|
||||
@ -934,11 +934,16 @@ class Mochitest(MochitestUtilsMixin):
|
||||
status = proc.wait()
|
||||
runner.process_handler = None
|
||||
|
||||
if timeout is None:
|
||||
didTimeout = False
|
||||
else:
|
||||
didTimeout = proc.didTimeout
|
||||
|
||||
# finalize output handler
|
||||
outputHandler.finish(proc.didTimeout)
|
||||
outputHandler.finish(didTimeout)
|
||||
|
||||
# handle timeout
|
||||
if proc.didTimeout:
|
||||
if didTimeout:
|
||||
browserProcessId = outputHandler.browserProcessId
|
||||
self.handleTimeout(timeout, proc, utilityPath, debuggerInfo, browserProcessId)
|
||||
|
||||
@ -1153,10 +1158,9 @@ class Mochitest(MochitestUtilsMixin):
|
||||
return (stackFixerFunction, stackFixerCommand)
|
||||
|
||||
def setProcess(self, proc, outputTimeout=None):
|
||||
self.proc = proc
|
||||
if self.stackFixerCommand:
|
||||
self.stackFixerProcess = mozprocess.ProcessHandler(self.stackFixerCommand,
|
||||
stdin=proc.proc.stdout,
|
||||
stdin=proc.stdout,
|
||||
processOutputLine=[self],
|
||||
)
|
||||
self.stackFixerProcess.run(outputTimeout=outputTimeout)
|
||||
|
Loading…
x
Reference in New Issue
Block a user