Simplify devicelab logic and fix tests (#139122)

- fix https://github.com/flutter/flutter/issues/53707 by having the test not expect a timeout but instead actually look for the retry message
- simplify the `--task` option to only accept task names rather than also accepting paths
- remove some obsolete options that referred to the manifest which no longer seems to exist
This commit is contained in:
Ian Hickson
2023-11-29 00:41:27 -08:00
committed by GitHub
parent c5328650f1
commit 5e216d44ca
6 changed files with 59 additions and 61 deletions

View File

@@ -66,16 +66,11 @@ To run a test, use option `-t` (`--task`):
```sh
# from the .../flutter/dev/devicelab directory
../../bin/cache/dart-sdk/bin/dart bin/test_runner.dart test -t {NAME_OR_PATH_OF_TEST}
../../bin/cache/dart-sdk/bin/dart bin/test_runner.dart test -t {NAME_OF_TEST}
```
Where `NAME_OR_PATH_OF_TEST` can be either of:
* the _name_ of a task, which is a file's basename in `bin/tasks`. Example:
`complex_layout__start_up`.
* the path to a Dart _file_ corresponding to a task, which resides in
`bin/tasks`. Tip: most shells support path auto-completion using the Tab key.
Example: `bin/tasks/complex_layout__start_up.dart`.
Where `NAME_OR_PATH_OF_TEST` is the name of a task, which is a file's
basename in `bin/tasks`. Example: `complex_layout__start_up`.
To run multiple tests, repeat option `-t` (`--task`) multiple times:
@@ -261,4 +256,4 @@ Take gallery tasks for example:
1. Linux android
- Separating PR: https://github.com/flutter/flutter/pull/103550
- Switching PR: https://github.com/flutter/flutter/pull/110533
2. Mac iOS: https://github.com/flutter/flutter/pull/111164
2. Mac iOS: https://github.com/flutter/flutter/pull/111164