File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1012,4 +1012,10 @@ def signal_handler(*args):
10121012
10131013
10141014if __name__ == "__main__" :
1015+ # Under the buildbot, stdout is not a TTY, but we must still flush after
1016+ # every line to make sure our output appears in the correct order relative
1017+ # to the output of our subprocesses.
1018+ for stream in [sys .stdout , sys .stderr ]:
1019+ stream .reconfigure (line_buffering = True )
1020+
10151021 main ()
Original file line number Diff line number Diff line change @@ -412,4 +412,9 @@ def main():
412412
413413
414414if __name__ == "__main__" :
415+ # Under the buildbot, stdout is not a TTY, but we must still flush after
416+ # every line to make sure our output appears in the correct order relative
417+ # to the output of our subprocesses.
418+ for stream in [sys .stdout , sys .stderr ]:
419+ stream .reconfigure (line_buffering = True )
415420 main ()
You can’t perform that action at this time.
0 commit comments