From 3458654c99cfbc4e80097a0e99955c73e4fca0df Mon Sep 17 00:00:00 2001 From: Chris Pryer Date: Sun, 25 Feb 2024 22:35:40 -0500 Subject: [PATCH] Rename rye-test-home to rye-test-dir --- rye/tests/common/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rye/tests/common/mod.rs b/rye/tests/common/mod.rs index 4bab40c824..58b868bef3 100644 --- a/rye/tests/common/mod.rs +++ b/rye/tests/common/mod.rs @@ -17,7 +17,7 @@ pub const INSTA_FILTERS: &[(&str, &str)] = &[ "[TEMP_PATH]/", ), // home - (r"(\b[A-Z]:)?[\\/].*?[\\/]rye-test-home", "[RYE_HOME]"), + (r"(\b[A-Z]:)?[\\/].*?[\\/]home", "[RYE_HOME]"), // macos temp folder (r"/var/folders/\S+?/T/\S+", "[TEMP_FILE]"), // linux temp folders @@ -34,7 +34,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();