mirror of
https://github.com/uutils/coreutils
synced 2024-12-04 18:39:52 +00:00
tests/mkdir: check for multiple --parent arguments
This commit is contained in:
parent
41f52f3402
commit
8cecebc050
1 changed files with 13 additions and 1 deletions
|
@ -61,9 +61,21 @@ fn test_mkdir_parent() {
|
|||
let test_dir = "parent_dir/child_dir";
|
||||
|
||||
scene.ucmd().arg("-p").arg(test_dir).succeeds();
|
||||
scene.ucmd().arg("-p").arg(test_dir).succeeds();
|
||||
scene.ucmd().arg("-p").arg("-p").arg(test_dir).succeeds();
|
||||
scene.ucmd().arg("--parent").arg(test_dir).succeeds();
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("--parent")
|
||||
.arg("--parent")
|
||||
.arg(test_dir)
|
||||
.succeeds();
|
||||
scene.ucmd().arg("--parents").arg(test_dir).succeeds();
|
||||
scene
|
||||
.ucmd()
|
||||
.arg("--parents")
|
||||
.arg("--parents")
|
||||
.arg(test_dir)
|
||||
.succeeds();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue