Add reproducible unprivileged Linux build and mount checks
This commit is contained in:
@@ -10,12 +10,12 @@ fn setup_test_dir() -> TempDir {
|
||||
|
||||
// Create a moderately deep structure
|
||||
for i in 0..10 {
|
||||
let dir_path = base_path.join(format!("dir_{}", i));
|
||||
let dir_path = base_path.join(format!("dir_{i}"));
|
||||
fs::create_dir(&dir_path).unwrap();
|
||||
for j in 0..10 {
|
||||
let file_path = dir_path.join(format!("file_{}.txt", j));
|
||||
let file_path = dir_path.join(format!("file_{j}.txt"));
|
||||
let mut file = File::create(file_path).unwrap();
|
||||
writeln!(file, "Some content for file {}-{}", i, j).unwrap();
|
||||
writeln!(file, "Some content for file {i}-{j}").unwrap();
|
||||
}
|
||||
}
|
||||
temp_dir
|
||||
|
||||
Reference in New Issue
Block a user