| Index: scripts/run_cmd.py
|
| diff --git a/scripts/run_cmd.py b/scripts/run_cmd.py
|
| index 88f5921eef2052638a0fc9f1be4aba2061c9f2c1..18182c55dcc0c939fb7754f4203cd1cb1aafb582 100755
|
| --- a/scripts/run_cmd.py
|
| +++ b/scripts/run_cmd.py
|
| @@ -185,8 +185,9 @@ def _get_result(popen):
|
| Returns:
|
| A dictionary with stdout, stderr, and returncode as keys.
|
| """
|
| - print popen.stdout.read()
|
| - print popen.stderr.read()
|
| + for fd in (popen.stdout, popen.stderr):
|
| + for line in iter(fd.readline, ''):
|
| + print line
|
| stdout, stderr = popen.communicate()
|
| return CommandResults.make(stdout=stdout,
|
| stderr=stderr,
|
|
|