Skip to content
Myr

Add additional integration test for failing command

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent e666b01 · Browse files · 1 file+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−0 removed

  • tests:+14 added−0 removed

1 file+14 added−0 removed

modified:tests/integration_tests.rs+14 added
113 unmodified lines
114 "Failed to run command 'some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577'",115 ));116}117118#[cfg(unix)]119#[test]120fn fails_for_failing_command_without_shell() {121 hyperfine()122 .arg("--shell=none")123 .arg("--runs=1")124 .arg("false")125 .assert()126 .failure()127 .stderr(predicate::str::contains(128 "Command terminated with non-zero exit code",129 ));130}131132#[test]133fn fails_for_unknown_setup_command() {134 hyperfine()135 .arg("--runs=1")136 .arg("--setup=some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577")
185 unmodified lines