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 &&