Index: tools/gardening/bin/compare_failures.dart |
diff --git a/tools/gardening/lib/compare_failures.dart b/tools/gardening/bin/compare_failures.dart |
similarity index 96% |
rename from tools/gardening/lib/compare_failures.dart |
rename to tools/gardening/bin/compare_failures.dart |
index 5f225dd2b5de7617abdf42b656c3148a1c4af199..fc0935fdd4b04e9deaf5e752884986a46e077b1f 100644 |
--- a/tools/gardening/lib/compare_failures.dart |
+++ b/tools/gardening/bin/compare_failures.dart |
@@ -7,11 +7,10 @@ |
/// Use this to detect flakiness of failures, especially timeouts. |
import 'dart:async'; |
-import 'dart:convert'; |
import 'dart:io'; |
-import 'src/buildbot_structures.dart'; |
-import 'src/util.dart'; |
+import 'package:gardening/src/buildbot_structures.dart'; |
+import 'package:gardening/src/util.dart'; |
main(List<String> args) async { |
if (args.length != 1) { |
@@ -47,13 +46,6 @@ Future<List<BuildResult>> readBuildResults( |
return summaries; |
} |
-/// Reads the content of [uri] as text. |
-Future<String> readUriAsText(HttpClient client, Uri uri) async { |
- HttpClientRequest request = await client.getUrl(uri); |
- HttpClientResponse response = await request.close(); |
- return UTF8.decode(await response.expand((l) => l).toList()); |
-} |
- |
/// Parses the [buildUri] test log and creates a [BuildResult] for it. |
Future<BuildResult> readBuildResult( |
HttpClient client, BuildUri buildUri) async { |