Index: tools/gardening/lib/src/client.dart |
diff --git a/tools/gardening/lib/src/client.dart b/tools/gardening/lib/src/client.dart |
index eb09ac8f38554dff970e3ddef0a6a66ebdd1d277..773c2d01f880d9491becd017fa86e4f037c2541f 100644 |
--- a/tools/gardening/lib/src/client.dart |
+++ b/tools/gardening/lib/src/client.dart |
@@ -32,13 +32,18 @@ class HttpBuildbotClient implements BuildbotClient { |
Future<BuildResult> readResult(BuildUri buildUri) async { |
int skips = 0; |
Duration timeout; |
- if (buildUri.buildNumber < 0) { |
- timeout = new Duration(seconds: 1); |
- } |
+ timeout = new Duration(seconds: 1); |
void skipToPreviousBuildNumber() { |
BuildUri prevBuildUri = buildUri.prev(); |
- log('Skip build number on ${buildUri} -> ${prevBuildUri.buildNumber}'); |
+ String message = |
+ 'Skip build number on ${buildUri} -> ${prevBuildUri.buildNumber}'; |
+ // Skipping is more serious with an absolute than a relative build. |
+ if (buildUri.buildNumber < 0) { |
+ log(message); |
+ } else { |
+ print(message); |
+ } |
buildUri = buildUri.prev(); |
} |