Skip to content

Commit 54c8495

Browse files
committed
more loggging
1 parent 044e804 commit 54c8495

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

crates/pet-python-utils/tests/cache_test.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ fn verify_cache() {
103103
test
104104
)]
105105
#[allow(dead_code)]
106+
// #[test]
106107
fn verify_invalidating_cache() {
107108
use std::{env, fs, time::SystemTime};
108109

@@ -128,6 +129,23 @@ fn verify_invalidating_cache() {
128129
is64_bit: true,
129130
symlinks: Some(vec![python.clone(), python3.clone()]),
130131
};
132+
let unix: PathBuf = resolve_test_path(&["unix"]).into();
133+
println!("unix {:?} exists = {:?}", python, python.exists());
134+
println!(
135+
"unix.parent {:?} exists = {:?}",
136+
unix.parent().unwrap(),
137+
unix.parent().unwrap().exists()
138+
);
139+
println!(
140+
"unix.parent.parent {:?} exists = {:?}",
141+
unix.parent().unwrap().parent().unwrap(),
142+
unix.parent().unwrap().parent().unwrap().exists()
143+
);
144+
println!(
145+
"Updating mtime of {:?} and it exists = {:?}",
146+
python,
147+
python.exists()
148+
);
131149

132150
// Ensure the file does not exist.
133151
let cache_file = generate_cache_file(&cache_dir, &resolve_env.executable);

0 commit comments

Comments
 (0)