mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
ls: some more tests for ignore & hide
This commit is contained in:
parent
d68959d696
commit
a50eae76a4
1 changed files with 21 additions and 1 deletions
|
@ -1315,6 +1315,26 @@ fn test_ls_ignore_hide() {
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is("some_other_file\n");
|
.stdout_is("some_other_file\n");
|
||||||
|
|
||||||
|
scene
|
||||||
|
.ucmd()
|
||||||
|
.arg("--hide")
|
||||||
|
.arg("README*")
|
||||||
|
.arg("--ignore")
|
||||||
|
.arg("CONTRIBUTING*")
|
||||||
|
.arg("-1")
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is("some_other_file\n");
|
||||||
|
|
||||||
|
scene
|
||||||
|
.ucmd()
|
||||||
|
.arg("--hide")
|
||||||
|
.arg("README*")
|
||||||
|
.arg("--hide")
|
||||||
|
.arg("CONTRIBUTING*")
|
||||||
|
.arg("-1")
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is("some_other_file\n");
|
||||||
|
|
||||||
// Invalid patterns
|
// Invalid patterns
|
||||||
scene
|
scene
|
||||||
.ucmd()
|
.ucmd()
|
||||||
|
@ -1326,7 +1346,7 @@ fn test_ls_ignore_hide() {
|
||||||
|
|
||||||
scene
|
scene
|
||||||
.ucmd()
|
.ucmd()
|
||||||
.arg("--ignore")
|
.arg("--hide")
|
||||||
.arg("READ[ME")
|
.arg("READ[ME")
|
||||||
.arg("-1")
|
.arg("-1")
|
||||||
.succeeds()
|
.succeeds()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue