Skip to content

Commit

Permalink
Do not capture stdin/stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Aug 14, 2024
1 parent d0720cd commit 9403aa0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9403aa0

Please sign in to comment.