tests: Add a basic test for snapshot/retsore

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam 2022-11-03 11:45:49 -07:00 committed by Bo Chen
parent 58d8795b53
commit 92d083f593

View File

@ -5693,6 +5693,11 @@ mod common_parallel {
_test_snapshot_restore(true); _test_snapshot_restore(true);
} }
#[test]
fn test_snapshot_restore_basic() {
_test_snapshot_restore(false);
}
fn _test_snapshot_restore(use_hotplug: bool) { fn _test_snapshot_restore(use_hotplug: bool) {
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string()); let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
let guest = Guest::new(Box::new(focal)); let guest = Guest::new(Box::new(focal));