mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests: update to clap 4
This commit is contained in:
@@ -1856,6 +1856,7 @@ mod tests {
|
||||
// This error was first detected when running tail so tail is used here but
|
||||
// should fail with any command that takes piped input.
|
||||
// See also https://github.com/uutils/coreutils/issues/3895
|
||||
#[cfg(feature = "tail")]
|
||||
#[test]
|
||||
#[cfg_attr(not(feature = "expensive_tests"), ignore)]
|
||||
fn test_when_piped_input_then_no_broken_pipe() {
|
||||
|
||||
@@ -21,7 +21,7 @@ fn execution_phrase_double() {
|
||||
.unwrap();
|
||||
assert!(String::from_utf8(output.stderr)
|
||||
.unwrap()
|
||||
.contains(&format!("USAGE:\n {} ls", scenario.bin_path.display(),)));
|
||||
.contains(&format!("Usage: {} ls", scenario.bin_path.display(),)));
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -36,8 +36,9 @@ fn execution_phrase_single() {
|
||||
.arg("--some-invalid-arg")
|
||||
.output()
|
||||
.unwrap();
|
||||
dbg!(String::from_utf8(output.stderr.clone()).unwrap());
|
||||
assert!(String::from_utf8(output.stderr).unwrap().contains(&format!(
|
||||
"USAGE:\n {}",
|
||||
"Usage: {}",
|
||||
scenario.fixtures.plus("uu-ls").display()
|
||||
)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user