From ba17bf556b71c67d9f04a554318d07344227a423 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 11 Apr 2018 00:29:47 +0200 Subject: [PATCH] show make-pr.sh output in tests --- ofborg/src/checkout.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ofborg/src/checkout.rs b/ofborg/src/checkout.rs index 4f1bde9..14cb651 100644 --- a/ofborg/src/checkout.rs +++ b/ofborg/src/checkout.rs @@ -269,10 +269,14 @@ mod tests { .current_dir(tpath("./test-srcs")) .arg(bare) .arg(co) - .stderr(Stdio::null()) .stdout(Stdio::piped()) .output() .expect("building the test PR failed"); + + let stderr = String::from_utf8(output.stderr) + .unwrap_or_else(|err| format!("warning: {}", err)); + println!("{}", stderr); + let hash = String::from_utf8(output.stdout).expect("Should just be a hash"); return hash.trim().to_owned(); }