Commit bafc3a93 authored by Jérome Perrin's avatar Jérome Perrin

LiveTest: flush stdout when printing output

parent 926b0c71
...@@ -230,6 +230,7 @@ def runLiveTest(test_list, verbosity=1, stream=None, request_server_url=None, ** ...@@ -230,6 +230,7 @@ def runLiveTest(test_list, verbosity=1, stream=None, request_server_url=None, **
output = StringIO() output = StringIO()
def print_and_write(data): def print_and_write(data):
sys.stdout.write(data) sys.stdout.write(data)
sys.stdout.flush()
return StringIO.write(output, data) return StringIO.write(output, data)
output.write = print_and_write output.write = print_and_write
output.write("**Running Live Test:\n") output.write("**Running Live Test:\n")
......
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