Skip to content

Commit 0651ecf

Browse files
committed
Ensure stdout is flushed after every write.
1 parent 3a13d56 commit 0651ecf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iOS/testbed/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ async def log_stream_task(initial_devices):
141141
else:
142142
suppress_dupes = False
143143
sys.stdout.write(line)
144+
sys.stdout.flush()
144145

145146

146147
async def xcode_test(location, simulator, verbose):
@@ -170,6 +171,7 @@ async def xcode_test(location, simulator, verbose):
170171
) as process:
171172
while line := (await process.stdout.readline()).decode(*DECODE_ARGS):
172173
sys.stdout.write(line)
174+
sys.stdout.flush()
173175

174176
status = await asyncio.wait_for(process.wait(), timeout=1)
175177
exit(status)

0 commit comments

Comments
 (0)