Skip to content

Commit

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

0 comments on commit fa3fa42

Please sign in to comment.