We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c30eac commit 256df34Copy full SHA for 256df34
cli/tests/cli/create/option_one_file_system.rs
@@ -46,6 +46,12 @@ mod platform {
46
let _ = fs::remove_dir_all("option_one_file_system_mount");
47
fs::create_dir_all("option_one_file_system_mount/in/subdir").unwrap();
48
49
+ // Defer cleanup to ensure it runs even if the test panics.
50
+ scopeguard::defer! {
51
+ let _ = Command::new("umount").arg("option_one_file_system_mount/in/subdir").status();
52
+ let _ = fs::remove_dir_all("option_one_file_system_mount");
53
+ };
54
+
55
fs::write("option_one_file_system_mount/in/main_file.txt", "main fs").unwrap();
56
57
let mount_status = Command::new("mount")
0 commit comments