[test] Change default branch for test runner to main

Change-Id: Id5f6676c916810b6d4748dda1aff3ee4438a112b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251764
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Michael Thomsen <mit@google.com>
This commit is contained in:
William Hesse 2022-07-18 12:48:33 +00:00 committed by Commit Bot
parent ea7f3d4d96
commit 145a9230de
2 changed files with 4 additions and 4 deletions

View file

@ -81,9 +81,9 @@ Future<ProcessResult> runProcessInheritStdio(
/// Finds the branch of a builder given the list of branches.
String branchOfBuilder(String builder, List<String> branches) {
return branches.where((branch) => branch != "master").firstWhere(
return branches.where((branch) => branch != "main").firstWhere(
(branch) => builder.endsWith("-$branch"),
orElse: () => "master");
orElse: () => "main");
}
/// Finds the named configuration to test according to the test matrix
@ -320,7 +320,7 @@ Future<void> runTests(List<String> args) async {
parser.addOption("branch",
abbr: "B",
help: "Select the builders building this branch",
defaultsTo: "master");
defaultsTo: "main");
parser.addOption("commit", abbr: "C", help: "Compare with this commit");
parser.addFlag("deflake",
help: "Re-run failing newly tests $deflakingCount times.");

View file

@ -1,6 +1,6 @@
{
"branches": [
"master"
"main"
],
"filesets": {
"analyzer_unit_tests": [