mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 12:57:42 +00:00
[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:
parent
ea7f3d4d96
commit
145a9230de
|
@ -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.");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"branches": [
|
||||
"master"
|
||||
"main"
|
||||
],
|
||||
"filesets": {
|
||||
"analyzer_unit_tests": [
|
||||
|
|
Loading…
Reference in a new issue