fix: fail tests when make-change fails
It fails now, because it doesn't exist.
This commit is contained in:
parent
5f88312e53
commit
0af623a929
|
@ -427,14 +427,18 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_pr_repo(bare: &Path, co: &Path) -> String {
|
fn make_pr_repo(bare: &Path, co: &Path) -> String {
|
||||||
let output = Command::new("bash")
|
let mut cmd = Command::new("bash");
|
||||||
.current_dir(tpath("./test-srcs"))
|
|
||||||
|
cmd.current_dir(tpath("./test-srcs"))
|
||||||
.arg("make-change.sh")
|
.arg("make-change.sh")
|
||||||
.arg(bare)
|
.arg(bare)
|
||||||
.arg(co)
|
.arg(co)
|
||||||
.stderr(Stdio::null())
|
.stderr(Stdio::null())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped());
|
||||||
.output()
|
|
||||||
|
assert!(cmd.status().unwrap().success());
|
||||||
|
|
||||||
|
let output = cmd.output()
|
||||||
.expect("building the test PR failed");
|
.expect("building the test PR failed");
|
||||||
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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue