OLD | NEW |
| 1 #!/usr/bin/env dart |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
4 | 5 |
5 // Translates a buildbot shard name to the corresponding column group name | 6 // Translates a buildbot shard name to the corresponding column group name |
6 // on the buildbot site, such that it's easier to find the right column. | 7 // on the buildbot site, such that it's easier to find the right column. |
7 // | 8 // |
8 // Example: `dart bin/shard2group.dart precomp-linux-debug-x64-be` | 9 // Example: `dart bin/shard2group.dart precomp-linux-debug-x64-be` |
9 // prints `vm-precomp(5): precomp-linux-debug-x64-be`. | 10 // prints `vm-precomp(5): precomp-linux-debug-x64-be`. |
10 | 11 |
(...skipping 13 matching lines...) Expand all Loading... |
24 List<String> shardGroup = shardGroups[group]; | 25 List<String> shardGroup = shardGroups[group]; |
25 for (int i = 0; i < shardGroup.length; i++) { | 26 for (int i = 0; i < shardGroup.length; i++) { |
26 String shard = shardGroup[i]; | 27 String shard = shardGroup[i]; |
27 if (shard.contains(arg)) { | 28 if (shard.contains(arg)) { |
28 print("$group(${i+1}): $shard"); | 29 print("$group(${i+1}): $shard"); |
29 } | 30 } |
30 } | 31 } |
31 } | 32 } |
32 } | 33 } |
33 } | 34 } |
OLD | NEW |