mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
tests: update to clap 4
This commit is contained in:
parent
d7b08a01b1
commit
153614c40e
2 changed files with 4 additions and 2 deletions
|
@ -1856,6 +1856,7 @@ mod tests {
|
||||||
// This error was first detected when running tail so tail is used here but
|
// This error was first detected when running tail so tail is used here but
|
||||||
// should fail with any command that takes piped input.
|
// should fail with any command that takes piped input.
|
||||||
// See also https://github.com/uutils/coreutils/issues/3895
|
// See also https://github.com/uutils/coreutils/issues/3895
|
||||||
|
#[cfg(feature = "tail")]
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg_attr(not(feature = "expensive_tests"), ignore)]
|
#[cfg_attr(not(feature = "expensive_tests"), ignore)]
|
||||||
fn test_when_piped_input_then_no_broken_pipe() {
|
fn test_when_piped_input_then_no_broken_pipe() {
|
||||||
|
|
|
@ -21,7 +21,7 @@ fn execution_phrase_double() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert!(String::from_utf8(output.stderr)
|
assert!(String::from_utf8(output.stderr)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.contains(&format!("USAGE:\n {} ls", scenario.bin_path.display(),)));
|
.contains(&format!("Usage: {} ls", scenario.bin_path.display(),)));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -36,8 +36,9 @@ fn execution_phrase_single() {
|
||||||
.arg("--some-invalid-arg")
|
.arg("--some-invalid-arg")
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
dbg!(String::from_utf8(output.stderr.clone()).unwrap());
|
||||||
assert!(String::from_utf8(output.stderr).unwrap().contains(&format!(
|
assert!(String::from_utf8(output.stderr).unwrap().contains(&format!(
|
||||||
"USAGE:\n {}",
|
"Usage: {}",
|
||||||
scenario.fixtures.plus("uu-ls").display()
|
scenario.fixtures.plus("uu-ls").display()
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue