Commit dd9d5d38 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Write directly test output to avoid waiting for test completion


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29609 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d35e883d
...@@ -459,10 +459,12 @@ class TemplateTool (BaseTool): ...@@ -459,10 +459,12 @@ class TemplateTool (BaseTool):
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT) stderr=subprocess.STDOUT)
output = process.communicate()[0] while True:
line = process.stdout.readline()
outfile.write(output) if not line:
outfile.flush() break
outfile.write(line)
outfile.flush()
if hasattr(outfile, 'getvalue'): if hasattr(outfile, 'getvalue'):
return outfile.getvalue() return outfile.getvalue()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment