mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug #476185 - runtests.py should print stdout immediately. r=jwalden
This commit is contained in:
parent
a4bd8ef0fd
commit
1ae4d38945
@ -447,8 +447,10 @@ def runApp(testURL, env, app, profileDir, extraArgs, runSSLTunnel = False, utili
|
||||
args.extend(extraArgs)
|
||||
proc = Process([cmd] + args, env = environment(env), stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
|
||||
log.info("Application pid: %d", proc.pid)
|
||||
for line in proc.stdout:
|
||||
line = proc.stdout.readline()
|
||||
while line != "":
|
||||
log.info(line.rstrip())
|
||||
line = proc.stdout.readline()
|
||||
status = proc.wait()
|
||||
if status != 0:
|
||||
log.info("TEST-UNEXPECTED-FAIL | Exited with code %d during test run", status)
|
||||
|
Loading…
Reference in New Issue
Block a user