flutter/packages/flutter_tools/test/general.shard/runner
Matan Lurey 0cc27b993f
Suppress Flutter update check if --machine is present at all. (#150138)
Fixes https://github.com/flutter/flutter/issues/145158.

In an ideal world, the `--machine` flag would be strictly a global flag which sub-commands can choose to use (or perhaps just to report a `toolExit` that they don't have a `--machine` supported-mode if not. However currently, there is both a global flag, and command-specific flags.

This leads to the confusing scenario where:
```sh
flutter devices --machine
```

... still checks for a Flutter update, printing a banner and breaking the JSON output.

This PR "fixes" that by allowing `--machine` _anywhere_ in the command-line arguments to suppress the check.

/cc @johnmccutchan.
2024-06-13 19:35:49 +00:00
..
flutter_command_runner_test.dart Suppress Flutter update check if --machine is present at all. (#150138) 2024-06-13 19:35:49 +00:00
flutter_command_test.dart add default-flavor field to flutter pubspec, which will be used as the flavor in flutter build/run if --flavor is not provided (#147968) 2024-05-22 05:11:24 +00:00
local_engine_test.dart Always require --local-engine-host if --local-engine (#133003) 2023-08-22 01:32:14 +00:00
runner_test.dart Update docs around ga3 ga4 mismatch (#147075) 2024-04-19 19:15:09 +00:00
target_devices_test.dart Print warning and exit when iOS device is unpaired (#144551) 2024-03-04 23:01:11 +00:00
utils.dart Migrate some test files to null safety (#104469) 2022-05-24 16:53:08 -07:00