Skip to content

Commit 07b4b29

Browse files
authored
[script] use dart:io support for forwarding stdout/stderr (#5410)
1 parent 7eb9fef commit 07b4b29

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

script/tool/lib/src/common/process_runner.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ class ProcessRunner {
3636
print(
3737
'Running command: "$executable ${args.join(' ')}" in ${workingDir?.path ?? io.Directory.current.path}');
3838
final io.Process process = await io.Process.start(executable, args,
39-
workingDirectory: workingDir?.path, environment: environment);
40-
await Future.wait(<Future<dynamic>>[
41-
io.stdout.addStream(process.stdout),
42-
io.stderr.addStream(process.stderr),
43-
]);
39+
workingDirectory: workingDir?.path,
40+
environment: environment,
41+
mode: io.ProcessStartMode.inheritStdio);
4442
if (exitOnError && await process.exitCode != 0) {
4543
final String error =
4644
_getErrorString(executable, args, workingDir: workingDir);

0 commit comments

Comments
 (0)