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

Unified Diff: tools/gardening/lib/src/util.dart

Issue 2912343002: Add BuildBotClient to abstract http/logdog access (Closed)
Patch Set: 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/lib/src/logdog.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gardening/lib/src/util.dart
diff --git a/tools/gardening/lib/src/util.dart b/tools/gardening/lib/src/util.dart
index 66f986944367fe9fb7bfb4fbf7565bca703e2c0c..6d82076694aa4113dc89eb0137dd68c92c6793c5 100644
--- a/tools/gardening/lib/src/util.dart
+++ b/tools/gardening/lib/src/util.dart
@@ -51,12 +51,15 @@ Future<String> readUriAsText(HttpClient client, Uri uri) async {
}
ArgParser createArgParser() {
- ArgParser argParser = new ArgParser();
+ ArgParser argParser = new ArgParser(allowTrailingOptions: true);
argParser.addFlag('verbose',
abbr: 'v', negatable: false, help: "Turn on logging output.");
+ argParser.addFlag('no-cache', help: "Disable caching.");
argParser.addOption('cache',
help: "Use <dir> for caching test output.\n"
"Defaults to 'temp/gardening-cache/'.");
+ argParser.addFlag('logdog',
+ negatable: false, help: "Pull test results from logdog.");
return argParser;
}
@@ -67,4 +70,7 @@ void processArgResults(ArgResults argResults) {
if (argResults['cache'] != null) {
cache.base = Uri.base.resolve('${argResults['cache']}/');
}
+ if (argResults['no-cache']) {
+ cache.base = null;
+ }
}
« no previous file with comments | « tools/gardening/lib/src/logdog.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698