[infra] Prepare for the story of approve_results to end.

Change-Id: Ide82c48bebe158934ee1f25724341f72c519d3f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128663
Reviewed-by: Alexander Thomas <athom@google.com>
This commit is contained in:
Jonas Termansen 2019-12-17 14:03:02 +00:00
parent 8d74f6ee4a
commit 6c00cd1d28

View file

@ -352,6 +352,18 @@ ${parser.usage}""");
gsutilPy =
Platform.script.resolve("../third_party/gsutil/gsutil.py").toFilePath();
// Check if we have become the old workflow.
if (options["verbose"]) {
print("Checking for epilogue...");
}
final epilogue =
await catGsutil("gs://dart-test-results-approved-results/epilogue.txt");
if (epilogue != null) {
print(epilogue.trim());
exitCode = 1;
return;
}
// Load the list of bots according to the test matrix.
final testMatrixPath =
Platform.script.resolve("bots/test_matrix.json").toFilePath();