mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
* Avoid writing to stderr before process has finished streaming
This commit is contained in:
parent
96cb84a18c
commit
53d45258dc
@ -55,7 +55,7 @@ Stream<String> runAndGetStdout(String executable, List<String> arguments, {
|
||||
await for (String line in lines) {
|
||||
yield line;
|
||||
}
|
||||
|
||||
await stderr.addStream(process.stderr);
|
||||
final int exitCode = await process.exitCode.timeout(timeout, onTimeout: () {
|
||||
stderr.writeln('Process timed out after $timeout');
|
||||
return expectNonZeroExit ? 0 : 1;
|
||||
|
Loading…
Reference in New Issue
Block a user