Bug #476185 - runtests.py should print stdout immediately. r=jwalden

This commit is contained in:
bjarne@runitsoft.com 2009-02-13 14:33:14 -08:00
parent a4bd8ef0fd
commit 1ae4d38945

View File

@ -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)