@@ -115,9 +115,8 @@ def test_snapshot_current_version(uvm_nano):
115
115
def test_cycled_snapshot_restore (
116
116
bin_vsock_path ,
117
117
tmp_path ,
118
+ uvm_plain_any ,
118
119
microvm_factory ,
119
- guest_kernel ,
120
- rootfs ,
121
120
snapshot_type ,
122
121
use_snapshot_editor ,
123
122
cpu_template_any ,
@@ -133,7 +132,7 @@ def test_cycled_snapshot_restore(
133
132
logger = logging .getLogger ("snapshot_sequence" )
134
133
diff_snapshots = snapshot_type == SnapshotType .DIFF
135
134
136
- vm = microvm_factory . build ( guest_kernel , rootfs )
135
+ vm = uvm_plain_any
137
136
vm .spawn ()
138
137
vm .basic_config (
139
138
vcpu_count = 2 ,
@@ -249,7 +248,7 @@ def test_load_snapshot_failure_handling(uvm_plain):
249
248
vm .mark_killed ()
250
249
251
250
252
- def test_cmp_full_and_first_diff_mem (microvm_factory , guest_kernel , rootfs ):
251
+ def test_cmp_full_and_first_diff_mem (uvm_plain_any ):
253
252
"""
254
253
Compare memory of 2 consecutive full and diff snapshots.
255
254
@@ -260,7 +259,7 @@ def test_cmp_full_and_first_diff_mem(microvm_factory, guest_kernel, rootfs):
260
259
"""
261
260
logger = logging .getLogger ("snapshot_sequence" )
262
261
263
- vm = microvm_factory . build ( guest_kernel , rootfs )
262
+ vm = uvm_plain_any
264
263
vm .spawn ()
265
264
vm .basic_config (
266
265
vcpu_count = 2 ,
@@ -430,12 +429,12 @@ def test_create_large_diff_snapshot(uvm_plain):
430
429
# process would have been taken down.
431
430
432
431
433
- def test_diff_snapshot_overlay (guest_kernel , rootfs , microvm_factory ):
432
+ def test_diff_snapshot_overlay (uvm_plain_any , microvm_factory ):
434
433
"""
435
434
Tests that if we take a diff snapshot and direct firecracker to write it on
436
435
top of an existing snapshot file, it will successfully merge them.
437
436
"""
438
- basevm = microvm_factory . build ( guest_kernel , rootfs )
437
+ basevm = uvm_plain_any
439
438
basevm .spawn ()
440
439
basevm .basic_config (track_dirty_pages = True )
441
440
basevm .add_net_iface ()
@@ -467,15 +466,15 @@ def test_diff_snapshot_overlay(guest_kernel, rootfs, microvm_factory):
467
466
# Check that the restored VM works
468
467
469
468
470
- def test_snapshot_overwrite_self (guest_kernel , rootfs , microvm_factory ):
469
+ def test_snapshot_overwrite_self (uvm_plain_any , microvm_factory ):
471
470
"""Tests that if we try to take a snapshot that would overwrite the
472
471
very file from which the current VM is stored, nothing happens.
473
472
474
473
Note that even though we map the file as MAP_PRIVATE, the documentation
475
474
of mmap does not specify what should happen if the file is changed after being
476
475
mmap'd (https://man7.org/linux/man-pages/man2/mmap.2.html). It seems that
477
476
these changes can propagate to the mmap'd memory region."""
478
- base_vm = microvm_factory . build ( guest_kernel , rootfs )
477
+ base_vm = uvm_plain_any
479
478
base_vm .spawn ()
480
479
base_vm .basic_config ()
481
480
base_vm .add_net_iface ()
0 commit comments