show make-pr.sh output in tests
This commit is contained in:
parent
bead09b601
commit
ba17bf556b
|
@ -269,10 +269,14 @@ mod tests {
|
||||||
.current_dir(tpath("./test-srcs"))
|
.current_dir(tpath("./test-srcs"))
|
||||||
.arg(bare)
|
.arg(bare)
|
||||||
.arg(co)
|
.arg(co)
|
||||||
.stderr(Stdio::null())
|
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.output()
|
.output()
|
||||||
.expect("building the test PR failed");
|
.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");
|
let hash = String::from_utf8(output.stdout).expect("Should just be a hash");
|
||||||
return hash.trim().to_owned();
|
return hash.trim().to_owned();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue