mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Switch to --shell=none/-N, do not change the default
This commit is contained in:
1 parent
d9418e0731
commit
365ff2584d
5 files changed
+37
-24
No files matched your search
@@ -1,5 +1,5 @@
|
||||
mod common;
|
||||
use common::{hyperfine, hyperfine_shell};
|
||||
use common::hyperfine;
|
||||
|
||||
use predicates::prelude::*;
|
||||
|
||||
@@ -86,19 +86,20 @@ fn fails_for_unknown_command() {
|
||||
.assert()
|
||||
.failure()
|
||||
.stderr(predicate::str::contains(
|
||||
"Failed to run command 'some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577'",
|
||||
"Command terminated with non-zero exit code",
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fails_for_unknown_shell_command() {
|
||||
hyperfine_shell()
|
||||
fn fails_for_unknown_command_without_shell() {
|
||||
hyperfine()
|
||||
.arg("--shell=none")
|
||||
.arg("--runs=1")
|
||||
.arg("some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577")
|
||||
.assert()
|
||||
.failure()
|
||||
.stderr(predicate::str::contains(
|
||||
"Command terminated with non-zero exit code",
|
||||
"Failed to run command 'some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577'",
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user