File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
use std:: {
2
+ io:: Write ,
2
3
path:: { Path , PathBuf } ,
3
- process:: Command ,
4
+ process:: { Command , Stdio } ,
4
5
} ;
5
6
6
7
const QEMU_ARGS : & [ & str ] = & [
@@ -28,8 +29,11 @@ fn main() {
28
29
run_cmd. args ( QEMU_ARGS ) ;
29
30
run_cmd. args ( std:: env:: args ( ) . skip ( 2 ) . collect :: < Vec < _ > > ( ) ) ;
30
31
31
- let exit_status = run_cmd. status ( ) . unwrap ( ) ;
32
- match exit_status. code ( ) {
32
+ 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 ( ) {
33
37
Some ( 33 ) => { } // success
34
38
Some ( 35 ) => panic ! ( "Test failed" ) , // success
35
39
other => panic ! ( "Test failed with unexpected exit code `{:?}`" , other) ,
You can’t perform that action at this time.
0 commit comments