Skip to content

Commit badfd62

Browse files
committed
Cleanup bootstrap
1 parent 21b987e commit badfd62

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/bootstrap/check.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -391,18 +391,18 @@ fn krate_emscripten(build: &Build,
391391
let test_file_name = test.to_string_lossy().into_owned();
392392
println!("running {}", test_file_name);
393393
let nodejs = build.config.nodejs.as_ref().expect("nodejs not configured");
394-
let output = Command::new(nodejs)
394+
let status = Command::new(nodejs)
395395
.arg(&test_file_name)
396396
.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+
}
400404
Err(e) => panic!(format!("failed to execute command: {}", e)),
401405
};
402-
println!("{}", String::from_utf8(output.stdout).unwrap());
403-
if !output.status.success() {
404-
panic!("some tests failed");
405-
}
406406
}
407407
}
408408

0 commit comments

Comments
 (0)