[infra] Add support for logs to tools/test.dart.
Bug: https://github.com/dart-lang/sdk/issues/35307
Change-Id: I770199da3bed89d41017d806d289195b22377b4f
Reviewed-on: https://dart-review.googlesource.com/c/85741
Reviewed-by: William Hesse <whesse@google.com>
diff --git a/tools/test.dart b/tools/test.dart
index 5914e5f..1948772 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -233,6 +233,7 @@
..addAll([
"--output-directory=${deflakeDirectory.path}",
"--write-results",
+ "--write-logs",
"--test-list=$deflakeListPath"
])
..addAll(options.rest);
@@ -265,6 +266,7 @@
"--failing",
"--passing",
"--flakiness-data=${outDirectory.path}/flaky.json",
+ "--logs=${outDirectory.path}/logs.json",
"${outDirectory.path}/previous.json",
"${outDirectory.path}/results.json"
]);