diff --git a/dev/devicelab/bin/tasks/flutter_test_performance.dart b/dev/devicelab/bin/tasks/flutter_test_performance.dart index 6e33833e38..b3f8c072d3 100644 --- a/dev/devicelab/bin/tasks/flutter_test_performance.dart +++ b/dev/devicelab/bin/tasks/flutter_test_performance.dart @@ -51,7 +51,8 @@ Future runTest({bool coverage = false, bool noPub = false}) async { ); int badLines = 0; TestStep step = TestStep.starting; - await for (final String entry in analysis.stdout.transform(utf8.decoder).transform(const LineSplitter())) { + + analysis.stdout.transform(utf8.decoder).transform(const LineSplitter()).listen((String entry) { print('test stdout ($step): $entry'); if (step == TestStep.starting && entry == 'Building flutter tool...') { // ignore this line @@ -83,11 +84,11 @@ Future runTest({bool coverage = false, bool noPub = false}) async { } } } - } - await for (final String entry in analysis.stderr.transform(utf8.decoder).transform(const LineSplitter())) { + }); + analysis.stderr.transform(utf8.decoder).transform(const LineSplitter()).listen((String entry) { print('test stderr: $entry'); badLines += 1; - } + }); final int result = await analysis.exitCode; clock.stop(); if (result != 0) diff --git a/dev/devicelab/lib/framework/framework.dart b/dev/devicelab/lib/framework/framework.dart index af4f79efec..bea6ed427e 100644 --- a/dev/devicelab/lib/framework/framework.dart +++ b/dev/devicelab/lib/framework/framework.dart @@ -110,7 +110,8 @@ class _TaskRunner { '--enable-macos-desktop', '--enable-windows-desktop', '--enable-linux-desktop', - '--enable-web' + '--enable-web', + if (localEngine != null) ...['--local-engine', localEngine], ], canFail: true); if (configResult != 0) { print('Failed to enable configuration, tasks may not run.');