Unverified Commit 6e3ebc93 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] only run web shard if requested (#69932)

parent 6fe800ab
...@@ -320,7 +320,7 @@ Future<void> _runToolTests() async { ...@@ -320,7 +320,7 @@ Future<void> _runToolTests() async {
Directory(path.join(toolsPath, kTest)) Directory(path.join(toolsPath, kTest))
.listSync() .listSync()
.map<String>((FileSystemEntity entry) => entry.path) .map<String>((FileSystemEntity entry) => entry.path)
.where((String name) => name.endsWith(kDotShard) && !name.contains('web')) .where((String name) => name.endsWith(kDotShard))
.map<String>((String name) => path.basenameWithoutExtension(name)), .map<String>((String name) => path.basenameWithoutExtension(name)),
// The `dynamic` on the next line is because Map.fromIterable isn't generic. // The `dynamic` on the next line is because Map.fromIterable isn't generic.
value: (dynamic subshard) => () async { value: (dynamic subshard) => () async {
...@@ -337,6 +337,10 @@ Future<void> _runToolTests() async { ...@@ -337,6 +337,10 @@ Future<void> _runToolTests() async {
); );
}, },
); );
// Prevent web tests from running if not explicitly requested.
if (Platform.environment[CIRRUS_TASK_NAME] == null) {
subshards.remove('web');
}
await selectSubshard(subshards); await selectSubshard(subshards);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment