From 00822903bb424e2f08c08987f833b9e8d6fb8fc6 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 18 Jun 2019 14:14:24 -0700 Subject: [PATCH] Revert test directory cleaning change. --- tests/testsuite/support/paths.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/testsuite/support/paths.rs b/tests/testsuite/support/paths.rs index 918da387c82..7e62029f769 100644 --- a/tests/testsuite/support/paths.rs +++ b/tests/testsuite/support/paths.rs @@ -28,10 +28,7 @@ lazy_static! { } path.push(CARGO_INTEGRATION_TEST_DIR); - - path.rm_rf(); path.mkdir_p(); - path }; @@ -62,7 +59,9 @@ pub fn init_root() -> TestIdGuard { let guard = TestIdGuard { _private: () }; - root().mkdir_p(); + let r = root(); + r.rm_rf(); + r.mkdir_p(); guard }