[flutter_tools] let the logger know about machine mode (#86116)

This commit is contained in:
Jonah Williams
2021-07-12 10:41:03 -07:00
committed by GitHub
parent b1e1dd68ae
commit 53d8cba3ec
12 changed files with 155 additions and 22 deletions

View File

@@ -38,6 +38,7 @@ final Map<Type, Generator> _testbedDefaults = <Type, Generator>{
Logger: () => BufferLogger(
terminal: AnsiTerminal(stdio: globals.stdio, platform: globals.platform), // Danger, using real stdio.
outputPreferences: OutputPreferences.test(),
machine: false,
), // Allows reading logs and prevents stdout.
OperatingSystemUtils: () => FakeOperatingSystemUtils(),
OutputPreferences: () => OutputPreferences.test(), // configures BufferLogger to avoid color codes.