Skip to content

Commit

Permalink
Rename rye-test-home to rye-test-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpryer committed Feb 26, 2024
1 parent a6ce165 commit 3458654
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rye/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 3458654

Please sign in to comment.