diff --git a/dev/devicelab/bin/tasks/flutter_gallery__transition_perf_with_semantics.dart b/dev/devicelab/bin/tasks/flutter_gallery__transition_perf_with_semantics.dart index 8bf7c0a96f..faa3bc587d 100644 --- a/dev/devicelab/bin/tasks/flutter_gallery__transition_perf_with_semantics.dart +++ b/dev/devicelab/bin/tasks/flutter_gallery__transition_perf_with_semantics.dart @@ -13,6 +13,18 @@ Future main() async { await task(() async { final TaskResult withoutSemantics = await createGalleryTransitionTest()(); final TaskResult withSemantics = await createGalleryTransitionTest(semanticsEnabled: true)(); + if (withSemantics.benchmarkScoreKeys.isEmpty || withoutSemantics.benchmarkScoreKeys.isEmpty) { + String message = 'Lack of data'; + if (withSemantics.benchmarkScoreKeys.isEmpty) { + message += ' for test with semantics'; + if (withoutSemantics.benchmarkScoreKeys.isEmpty) { + message += ' and without semantics'; + } + } else { + message += 'for test without semantics'; + } + return TaskResult.failure(message); + } final List benchmarkScoreKeys = []; final Map data = {}; diff --git a/dev/devicelab/lib/tasks/gallery.dart b/dev/devicelab/lib/tasks/gallery.dart index 9481cdb7da..d22a5e078d 100644 --- a/dev/devicelab/lib/tasks/gallery.dart +++ b/dev/devicelab/lib/tasks/gallery.dart @@ -64,8 +64,8 @@ class GalleryTransitionTest { await flutter('packages', options: ['get']); final String testDriver = driverFile ?? (semanticsEnabled - ? '${testFile}_test' - : '${testFile}_with_semantics_test'); + ? '${testFile}_with_semantics_test' + : '${testFile}_test'); await flutter('drive', options: [ '--profile',