We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbcc044 commit 0532c62Copy full SHA for 0532c62
iOS/testbed/__main__.py
@@ -129,8 +129,18 @@ async def log_stream_task(initial_devices):
129
stdout=subprocess.PIPE,
130
stderr=subprocess.STDOUT,
131
) as process:
132
+ suppress_dupes = False
133
while line := (await process.stdout.readline()).decode(*DECODE_ARGS):
- sys.stdout.write(line)
134
+ # The iOS log streamer can sometimes lag; when it does, it outputs
135
+ # a warning about messages being dropped... often multiple times.
136
+ # Only print the first of these duplicated warnings.
137
+ if line.startswith("=== Messages dropped "):
138
+ if not suppress_dupes:
139
+ suppress_dupes = True
140
+ sys.stdout.write(line)
141
+ else:
142
143
144
145
146
async def xcode_test(location, simulator):
0 commit comments