diff --git a/tests/integration.rs b/tests/integration.rs index 7c7d0a433..6553d8fe8 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -2344,7 +2344,10 @@ fn make_guest_panic(guest: &Guest) { } mod common_parallel { - use std::{fs::OpenOptions, io::SeekFrom}; + use std::{ + fs::{remove_dir_all, OpenOptions}, + io::SeekFrom, + }; use crate::*; @@ -6229,6 +6232,9 @@ mod common_parallel { &event_path_restored )); + // Remove the snapshot dir + let _ = remove_dir_all(snapshot_dir.as_str()); + let r = std::panic::catch_unwind(|| { // Resume the VM assert!(remote_command(&api_socket_restored, "resume", None));