Skip to content
Myr

Add integration test for '--shell'

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 5c9c8c2 · Browse files · 1 file+17 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+17 added−0 removed

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:tests/integration_tests.rs+17 added
135 unmodified lines
136 .arg("false")137 .assert()138 .success();139}140141#[test]142fn runs_commands_using_user_defined_shell() {143 hyperfine()144 .arg("--runs=1")145 .arg("--show-output")146 .arg("--shell")147 .arg("echo 'custom_shell' '--shell-arg'")148 .arg("echo benchmark")149 .assert()150 .success()151 .stdout(152 predicate::str::contains("custom_shell --shell-arg -c echo benchmark").or(153 predicate::str::contains("custom_shell --shell-arg /C echo benchmark"),154 ),155 );156}