Index: tools/gardening/bin/create_shard_groups.dart |
diff --git a/tools/gardening/bin/create_shard_groups.dart b/tools/gardening/bin/create_shard_groups.dart |
index b54a87765d9bbee658cd2f64bb81426214729daf..e513e5f958e43d8663ea180f10af0f2ee567fa10 100644 |
--- a/tools/gardening/bin/create_shard_groups.dart |
+++ b/tools/gardening/bin/create_shard_groups.dart |
@@ -41,7 +41,10 @@ List<List<String>> findShards(List<String> source) { |
for (String line in source) { |
if (line.contains(shardsStartMark)) started = true; |
if (started) { |
- if (line.contains(shardsEndMark)) break; |
+ if (line.contains(shardsEndMark)) { |
+ if (shardResult != null) result.add(shardResult); |
+ break; |
+ } |
String trimmed = line.trim(); |
int buildersIndex = trimmed.indexOf(shardMark); |
if (buildersIndex >= 0) { |