From fa3fa42f35421898ff230f216a87b327f961d107 Mon Sep 17 00:00:00 2001 From: Chris Pryer <14341145+cnpryer@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:34:16 -0500 Subject: [PATCH] Rename rye-test-home to rye-test-dir (#776) --- rye/tests/common/mod.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rye/tests/common/mod.rs b/rye/tests/common/mod.rs index 21ed9807cf..3ffbb45b9f 100644 --- a/rye/tests/common/mod.rs +++ b/rye/tests/common/mod.rs @@ -17,7 +17,10 @@ pub const INSTA_FILTERS: &[(&str, &str)] = &[ "[TEMP_PATH]/", ), // home - (r"(\b[A-Z]:)?[\\/].*?[\\/]rye-test-home", "[RYE_HOME]"), + ( + r"(\b[A-Z]:)?[\\/].*?[\\/]rye-test-dir[\\/]home", + "[RYE_HOME]", + ), // macos temp folder (r"/var/folders/\S+?/T/\S+", "[TEMP_FILE]"), // linux temp folders @@ -34,7 +37,9 @@ fn marked_tempdir() -> TempDir { } fn bootstrap_test_rye() -> PathBuf { - let home = get_bin().parent().unwrap().join("rye-test-home"); + let test_dir = get_bin().parent().unwrap().join("rye-test-dir"); + let home = test_dir.join("home"); + fs::create_dir_all(&home).ok(); let lock_path = home.join("lock"); let mut lock = fslock::LockFile::open(&lock_path).unwrap();