Reland: Update link branches to main (#146882)
Reland https://github.com/flutter/flutter/pull/146558, reverted in https://github.com/flutter/flutter/pull/146880 due to an outdated test result ## Original description - Update CS and googlesource.com link branches - Update GitHub /blob/ and /tree/ links Tested links manually and fixes a few broken or deprecated links Added a test that validates that `master` isn't used, except for specified repos. Part of https://github.com/flutter/flutter/issues/121564
This commit is contained in:
@@ -217,7 +217,7 @@ _TASK_- the name of your test that also matches the name of the
|
||||
file in `bin/tasks` without the `.dart` extension.
|
||||
|
||||
1. Add target to
|
||||
[.ci.yaml](https://github.com/flutter/flutter/blob/master/.ci.yaml)
|
||||
[.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml)
|
||||
* Mirror an existing one that has the recipe `devicelab_drone`
|
||||
|
||||
If your test needs to run on multiple operating systems, create a separate
|
||||
@@ -237,7 +237,7 @@ and the test will run based on the artifact against a testbed with a device.
|
||||
|
||||
Steps:
|
||||
|
||||
1. Update the task class to extend [`BuildTestTask`](https://github.com/flutter/flutter/blob/master/dev/devicelab/lib/tasks/build_test_task.dart)
|
||||
1. Update the task class to extend [`BuildTestTask`](https://github.com/flutter/flutter/blob/main/dev/devicelab/lib/tasks/build_test_task.dart)
|
||||
- Override function `getBuildArgs`
|
||||
- Override function `getTestArgs`
|
||||
- Override function `parseTaskResult`
|
||||
|
||||
@@ -649,7 +649,7 @@ class AndroidDevice extends Device {
|
||||
|
||||
/// Retrieves device's wakefulness state.
|
||||
///
|
||||
/// See: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/PowerManagerInternal.java
|
||||
/// See: https://android.googlesource.com/platform/frameworks/base/+/main/core/java/android/os/PowerManagerInternal.java
|
||||
Future<String> _getWakefulness() async {
|
||||
final String powerInfo = await shellEval('dumpsys', <String>['power']);
|
||||
// A motoG4 phone returns `mWakefulness=Awake`.
|
||||
|
||||
Reference in New Issue
Block a user