show make-pr.sh output in tests

This commit is contained in:
Daiderd Jordan 2018-04-11 00:29:47 +02:00
parent bead09b601
commit ba17bf556b
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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();
}