File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -391,18 +391,18 @@ fn krate_emscripten(build: &Build,
391
391
let test_file_name = test. to_string_lossy ( ) . into_owned ( ) ;
392
392
println ! ( "running {}" , test_file_name) ;
393
393
let nodejs = build. config . nodejs . as_ref ( ) . expect ( "nodejs not configured" ) ;
394
- let output = Command :: new ( nodejs)
394
+ let status = Command :: new ( nodejs)
395
395
. arg ( & test_file_name)
396
396
. stderr ( :: std:: process:: Stdio :: inherit ( ) )
397
- . output ( ) ;
398
- let output = match output {
399
- Ok ( status) => status,
397
+ . status ( ) ;
398
+ match status {
399
+ Ok ( status) => {
400
+ if !status. success ( ) {
401
+ panic ! ( "some tests failed" ) ;
402
+ }
403
+ }
400
404
Err ( e) => panic ! ( format!( "failed to execute command: {}" , e) ) ,
401
405
} ;
402
- println ! ( "{}" , String :: from_utf8( output. stdout) . unwrap( ) ) ;
403
- if !output. status . success ( ) {
404
- panic ! ( "some tests failed" ) ;
405
- }
406
406
}
407
407
}
408
408
You can’t perform that action at this time.
0 commit comments