We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd1035b commit 4529b53Copy full SHA for 4529b53
tests/runner/src/main.rs
@@ -1,6 +1,7 @@
1
use std::{
2
+ io::Write,
3
path::{Path, PathBuf},
- process::Command,
4
+ process::{Command, Stdio},
5
};
6
7
const QEMU_ARGS: &[&str] = &[
@@ -28,8 +29,11 @@ fn main() {
28
29
run_cmd.args(QEMU_ARGS);
30
run_cmd.args(std::env::args().skip(2).collect::<Vec<_>>());
31
- let exit_status = run_cmd.status().unwrap();
32
- match exit_status.code() {
+ let child_output = run_cmd.output().unwrap();
33
+ std::io::stderr().write_all(&child_output.stderr).unwrap();
34
+ std::io::stderr().write_all(&child_output.stdout).unwrap();
35
+
36
+ match child_output.status.code() {
37
Some(33) => {} // success
38
Some(35) => panic!("Test failed"), // success
39
other => panic!("Test failed with unexpected exit code `{:?}`", other),
0 commit comments