From ba509a1489b5ae6f9ec1505083327eaf0db5b541 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 3 Jul 2023 09:24:37 +0200 Subject: [PATCH] cp: use mkdir_all() instead of mkdir() in test --- tests/by-util/test_cp.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index 3074513de2e..2bfd8231c4d 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -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