From 9403aa02f30957683f33909eaefae3f4bbafeb63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 14 Aug 2024 08:24:10 +0200 Subject: [PATCH] Do not capture stdin/stderr --- xtask/src/main.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 38d60eab94a..48f20306f8c 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -683,17 +683,14 @@ fn run_elfs(args: RunElfArgs) -> Result<()> { command.arg("--speed").arg("15000"); }; - let command = command.output().context("Failed to execute probe-rs")?; - - println!( - "{}\n{}", - String::from_utf8_lossy(&command.stderr), - String::from_utf8_lossy(&command.stdout) - ); + let mut command = command.spawn().context("Failed to execute probe-rs")?; + let status = command + .wait() + .context("Error while waiting for probe-rs to exit")?; log::info!("'{elf_name}' done"); - if !command.status.success() { + if !status.success() { failed.push(elf_name); } }