diff --git a/dev/bots/suite_runners/run_web_tests.dart b/dev/bots/suite_runners/run_web_tests.dart index d3b4a380d28..1a1260e95eb 100644 --- a/dev/bots/suite_runners/run_web_tests.dart +++ b/dev/bots/suite_runners/run_web_tests.dart @@ -521,6 +521,7 @@ class WebTestsSuite { flutter, [ 'run', + '--verbose', '--debug', '-d', 'chrome', @@ -533,10 +534,15 @@ class WebTestsSuite { ], outputMode: OutputMode.capture, outputListener: (String line, Process process) { + bool shutdownFlutterTool = false; if (line.contains('--- TEST SUCCEEDED ---')) { success = true; + shutdownFlutterTool = true; } - if (success || line.contains('--- TEST FAILED ---')) { + if (line.contains('--- TEST FAILED ---')) { + shutdownFlutterTool = true; + } + if (shutdownFlutterTool) { process.stdin.add('q'.codeUnits); } },