Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 7336312

Browse files
Do not filter the stderr output of "flutter run" in the devicelab run tests (#117188)
1 parent c7cb5f3 commit 7336312

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dev/devicelab/lib/tasks/run_tests.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ abstract class RunOutputTask {
244244
ready.complete();
245245
}
246246
});
247-
run.stderr
247+
final Stream<String> runStderr = run.stderr
248248
.transform<String>(utf8.decoder)
249249
.transform<String>(const LineSplitter())
250+
.asBroadcastStream();
251+
runStderr.listen((String line) => print('run:stderr: $line'));
252+
runStderr
250253
.skipWhile(isExpectedStderr)
251-
.listen((String line) {
252-
print('run:stderr: $line');
253-
stderr.add(line);
254-
});
254+
.listen((String line) => stderr.add(line));
255255
unawaited(run.exitCode.then<void>((int exitCode) { runExitCode = exitCode; }));
256256
await Future.any<dynamic>(<Future<dynamic>>[ ready.future, run.exitCode ]);
257257
if (runExitCode != null) {

0 commit comments

Comments
 (0)