[flutter_tools] only try to take a screenshot from flutter drive if the --screenshot flag is passed (#127150)

Fixes https://github.com/flutter/flutter/issues/123621
This commit is contained in:
Christopher Fujino
2023-05-19 12:14:17 -07:00
committed by GitHub
parent 31a16f342e
commit e310475fc7
3 changed files with 63 additions and 12 deletions

View File

@@ -393,7 +393,7 @@ class LocalFileSystemBlockingSetCurrentDirectory extends LocalFileSystem {
class FakeSignals implements Signals {
@override
Object addHandler(ProcessSignal signal, SignalHandler handler) {
return Object();
return const Object();
}
@override