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

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

Issue 2797253006: Add find_timeouts and caching to tools/gardening (Closed)
Patch Set: Updated cf. comments Created 3 years, 8 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/shard2group.dart ('k') | tools/gardening/lib/src/buildbot_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gardening/bin/status_summary.dart
diff --git a/tools/gardening/bin/status_summary.dart b/tools/gardening/bin/status_summary.dart
index 523f4fa11bc76fd4be2642f627ebdd02f46327e6..a30b49ca71d0d85fa5abf4c89b5c69bf827cf20b 100644
--- a/tools/gardening/bin/status_summary.dart
+++ b/tools/gardening/bin/status_summary.dart
@@ -9,11 +9,17 @@ import 'dart:async';
import 'dart:math' hide log;
import 'dart:io';
+import 'package:args/args.dart';
import 'package:gardening/src/util.dart';
main(List<String> args) async {
- if (args.length == 0) {
- print('Usage: status_summary <test-name1> [<test-name2> ...]');
+ ArgParser argParser = createArgParser();
+ ArgResults argResults = argParser.parse(args);
+ processArgResults(argResults);
+ if (argResults.rest.length == 0) {
+ print('Usage: status_summary [options] <test-name1> [<test-name2> ...]');
+ print('where options are:');
+ print(argParser.usage);
exit(1);
}
int maxStatusWidth = 0;
@@ -43,7 +49,7 @@ main(List<String> args) async {
comment = '';
}
- for (String arg in args) {
+ for (String arg in argResults.rest) {
if (testName.contains(arg) || arg.contains(testName)) {
StatusFile statusFile =
currentMap.putIfAbsent(testName, () => new StatusFile(uri));
« no previous file with comments | « tools/gardening/bin/shard2group.dart ('k') | tools/gardening/lib/src/buildbot_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698