[flutter_tools] allow unmuting of command logging (#61198)
Running flutter doctor -v prints out extra details instead of running in verbose mode. Allow disabling this with -vv so it can be debugged.
This commit is contained in:
@@ -41,6 +41,18 @@ void main() {
|
||||
expect(result.stdout, isNot(contains('exiting with code 0')));
|
||||
});
|
||||
|
||||
test('flutter doctor -vv super verbose', () async {
|
||||
final String flutterBin = globals.fs.path.join(getFlutterRoot(), 'bin', 'flutter');
|
||||
final ProcessResult result = await const LocalProcessManager().run(<String>[
|
||||
flutterBin,
|
||||
'doctor',
|
||||
'-vv',
|
||||
]);
|
||||
|
||||
// Check for message only printed in verbose mode.
|
||||
expect(result.stdout, contains('Running shutdown hooks'));
|
||||
});
|
||||
|
||||
test('flutter run --machine uses AppRunLogger', () async {
|
||||
final String flutterBin = globals.fs.path.join(getFlutterRoot(), 'bin', 'flutter');
|
||||
final ProcessResult result = await const LocalProcessManager().run(<String>[
|
||||
|
||||
Reference in New Issue
Block a user