From 6e3ebc935080c2478401fdfcaa9b42fc83c04cf1 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Thu, 5 Nov 2020 23:58:40 -0800 Subject: [PATCH] [flutter_tools] only run web shard if requested (#69932) --- dev/bots/test.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 7130721b99..5907e599a0 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -320,7 +320,7 @@ Future _runToolTests() async { Directory(path.join(toolsPath, kTest)) .listSync() .map((FileSystemEntity entry) => entry.path) - .where((String name) => name.endsWith(kDotShard) && !name.contains('web')) + .where((String name) => name.endsWith(kDotShard)) .map((String name) => path.basenameWithoutExtension(name)), // The `dynamic` on the next line is because Map.fromIterable isn't generic. value: (dynamic subshard) => () async { @@ -337,6 +337,10 @@ Future _runToolTests() async { ); }, ); + // Prevent web tests from running if not explicitly requested. + if (Platform.environment[CIRRUS_TASK_NAME] == null) { + subshards.remove('web'); + } await selectSubshard(subshards); }