From caf78daedab89af422343a5f399cd3eee4c42b1f Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Tue, 13 Jan 2026 10:58:27 -0800 Subject: [PATCH] In flutter_test_performance, consider the blank line at the start of "flutter test" output to be optional. (#180911) flutter_test_performance runs a "flutter test" command and parses its output. The parser expects the output to begin with a blank line. That line is no longer present after the roll to version 1.29 of the Dart test package (see https://github.com/flutter/flutter/pull/180886) Fixes https://github.com/flutter/flutter/issues/180903 --- dev/devicelab/bin/tasks/flutter_test_performance.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dev/devicelab/bin/tasks/flutter_test_performance.dart b/dev/devicelab/bin/tasks/flutter_test_performance.dart index 6dd25bc854d..a4f322ea3b3 100644 --- a/dev/devicelab/bin/tasks/flutter_test_performance.dart +++ b/dev/devicelab/bin/tasks/flutter_test_performance.dart @@ -65,16 +65,15 @@ Future runTest({bool coverage = false, bool noPub = false}) async { // ignore this line step = TestStep.runningPubGet; } else if (step.index <= TestStep.testWritesFirstCarriageReturn.index && entry.trim() == '') { - // we have a blank line at the start + // flutter_tools will print a blank line at the start of the test when using some versions + // of the Dart test package. In test package version 1.29 this line is no longer present. step = TestStep.testWritesFirstCarriageReturn; } else { final Match? match = testOutputPattern.matchAsPrefix(entry); if (match == null) { badLines += 1; } else { - if (step.index >= TestStep.testWritesFirstCarriageReturn.index && - step.index <= TestStep.testLoading.index && - match.group(1)!.startsWith('loading ')) { + if (step.index <= TestStep.testLoading.index && match.group(1)!.startsWith('loading ')) { // first the test loads step = TestStep.testLoading; } else if (step.index <= TestStep.testRunning.index &&