Fix tee function in example runner

This commit is contained in:
Ian Bell
2015-07-07 01:46:46 -06:00
parent 4c74391fbe
commit f59ac1608c

View File

@@ -10,8 +10,8 @@ def tee_call(call, file, **kwargs):
**kwargs)
stdout, stderr = callee.communicate()
print(stdout, stderr)
file.write()
file.write()
file.write(stdout)
file.write(stderr)
if callee.poll() != 0:
raise ValueError('Return code is non-zero')