Add additional integration test for failing command

This commit is contained in:
David Peter 2022-02-22 22:19:35 +01:00 committed by David Peter
parent e666b01e09
commit d13454a0d4

View File

@ -115,6 +115,20 @@ fn fails_for_unknown_command_without_shell() {
));
}
#[cfg(unix)]
#[test]
fn fails_for_failing_command_without_shell() {
hyperfine()
.arg("--shell=none")
.arg("--runs=1")
.arg("false")
.assert()
.failure()
.stderr(predicate::str::contains(
"Command terminated with non-zero exit code",
));
}
#[test]
fn fails_for_unknown_setup_command() {
hyperfine()