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