mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
cp: improve error msg if -r is not specified
This commit is contained in:
parent
02dc6ee67e
commit
285e580b6e
2 changed files with 4 additions and 2 deletions
|
@ -131,7 +131,9 @@ fn test_cp_directory_not_recursive() {
|
|||
.arg(TEST_COPY_TO_FOLDER)
|
||||
.arg(TEST_HELLO_WORLD_DEST)
|
||||
.fails()
|
||||
.stderr_contains("omitting directory");
|
||||
.stderr_is(format!(
|
||||
"cp: -r not specified; omitting directory '{TEST_COPY_TO_FOLDER}'\n"
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue