mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-04 04:25:45 +00:00
tests: Add a basic test for snapshot/retsore
Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
parent
58d8795b53
commit
92d083f593
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user