Skip to content

Commit

Permalink
Merge pull request #5029 from cakebaker/cp_use_mkdir_all_instead_of_m…
Browse files Browse the repository at this point in the history
…kdir

cp: use mkdir_all() instead of mkdir() in test
  • Loading branch information
sylvestre authored Jul 3, 2023
2 parents 42bf580 + ba509a1 commit a5272e1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/by-util/test_cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2345,12 +2345,8 @@ fn test_dir_recursive_copy() {
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;

at.mkdir("parent1");
at.mkdir("parent2");
at.mkdir("parent1/child");
at.mkdir("parent2/child1");
at.mkdir("parent2/child1/child2");
at.mkdir("parent2/child1/child2/child3");
at.mkdir_all("parent1/child");
at.mkdir_all("parent2/child1/child2/child3");

// case-1: copy parent1 -> parent1: should fail
scene
Expand Down

0 comments on commit a5272e1

Please sign in to comment.