Revert "Update link branches to main" (#146880)

Reverts flutter/flutter#146558

Causes failure
This commit is contained in:
Pierre-Louis
2024-04-17 13:25:18 +02:00
committed by GitHub
parent f2be9bcad5
commit 33a9643b5d
41 changed files with 53 additions and 118 deletions

View File

@@ -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/main/.ci.yaml)
[.ci.yaml](https://github.com/flutter/flutter/blob/master/.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/main/dev/devicelab/lib/tasks/build_test_task.dart)
1. Update the task class to extend [`BuildTestTask`](https://github.com/flutter/flutter/blob/master/dev/devicelab/lib/tasks/build_test_task.dart)
- Override function `getBuildArgs`
- Override function `getTestArgs`
- Override function `parseTaskResult`

View File

@@ -649,7 +649,7 @@ class AndroidDevice extends Device {
/// Retrieves device's wakefulness state.
///
/// See: https://android.googlesource.com/platform/frameworks/base/+/main/core/java/android/os/PowerManagerInternal.java
/// See: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/PowerManagerInternal.java
Future<String> _getWakefulness() async {
final String powerInfo = await shellEval('dumpsys', <String>['power']);
// A motoG4 phone returns `mWakefulness=Awake`.