From badfd6200ba199f7535a4e59e7802317951ec9cc Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 27 Sep 2016 19:56:50 +0000 Subject: Cleanup bootstrap --- src/bootstrap/check.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/bootstrap') diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs index 95c909aef77..b8417218a22 100644 --- a/src/bootstrap/check.rs +++ b/src/bootstrap/check.rs @@ -391,18 +391,18 @@ fn krate_emscripten(build: &Build, let test_file_name = test.to_string_lossy().into_owned(); println!("running {}", test_file_name); let nodejs = build.config.nodejs.as_ref().expect("nodejs not configured"); - let output = Command::new(nodejs) + let status = Command::new(nodejs) .arg(&test_file_name) .stderr(::std::process::Stdio::inherit()) - .output(); - let output = match output { - Ok(status) => status, + .status(); + match status { + Ok(status) => { + if !status.success() { + panic!("some tests failed"); + } + } Err(e) => panic!(format!("failed to execute command: {}", e)), }; - println!("{}", String::from_utf8(output.stdout).unwrap()); - if !output.status.success() { - panic!("some tests failed"); - } } } -- cgit 1.4.1-3-g733a5