Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: tools/gardening/bin/create_shard_groups.dart

Issue 2908403002: Add a 'bot.dart' executable to the gardening tools. (Closed)
Patch Set: Address comments. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gardening/bin/compare_failures.dart ('k') | tools/gardening/bin/current_summary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28dad3f5da08b9e1a82a54f5fea0e1015d0c77dc..6fd03128e204f398d2b6357bad268ebfc9f88765 100644
--- a/tools/gardening/bin/create_shard_groups.dart
+++ b/tools/gardening/bin/create_shard_groups.dart
@@ -66,9 +66,17 @@ List<List<String>> findShards(List<String> source) {
return result;
}
+void help() {
+ print("Generates the 'shard_data.dart' file that is used by our gardening");
+ print("tools. This tool needs to be run when the buildbot configuration");
+ print("(shard) changes\n");
+ print('Usage: dart create_shard_groups.dart <darto-source-file>');
+}
+
main(List<String> args) {
- if (args.length != 1) {
- print('Usage: dart create_shard_groups.dart <darto-source-file>');
+ if (args.length != 1 || args[0] == "--help") {
+ help();
+ if (args.length == 1) return;
exit(1);
}
« no previous file with comments | « tools/gardening/bin/compare_failures.dart ('k') | tools/gardening/bin/current_summary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698