@@ -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 ,
@@ -132,7 +131,7 @@ def test_cycled_snapshot_restore(
132
131
133
132
logger = logging .getLogger ("snapshot_sequence" )
134
133
135
- vm = microvm_factory . build ( guest_kernel , rootfs )
134
+ vm = uvm_plain_any
136
135
vm .spawn ()
137
136
vm .basic_config (
138
137
vcpu_count = 2 ,
@@ -248,7 +247,7 @@ def test_load_snapshot_failure_handling(uvm_plain):
248
247
vm .mark_killed ()
249
248
250
249
251
- def test_cmp_full_and_first_diff_mem (microvm_factory , guest_kernel , rootfs ):
250
+ def test_cmp_full_and_first_diff_mem (uvm_plain_any ):
252
251
"""
253
252
Compare memory of 2 consecutive full and diff snapshots.
254
253
@@ -259,7 +258,7 @@ def test_cmp_full_and_first_diff_mem(microvm_factory, guest_kernel, rootfs):
259
258
"""
260
259
logger = logging .getLogger ("snapshot_sequence" )
261
260
262
- vm = microvm_factory . build ( guest_kernel , rootfs )
261
+ vm = uvm_plain_any
263
262
vm .spawn ()
264
263
vm .basic_config (
265
264
vcpu_count = 2 ,
@@ -414,12 +413,12 @@ def test_create_large_diff_snapshot(uvm_plain):
414
413
# process would have been taken down.
415
414
416
415
417
- def test_diff_snapshot_overlay (guest_kernel , rootfs , microvm_factory ):
416
+ def test_diff_snapshot_overlay (uvm_plain_any , microvm_factory ):
418
417
"""
419
418
Tests that if we take a diff snapshot and direct firecracker to write it on
420
419
top of an existing snapshot file, it will successfully merge them.
421
420
"""
422
- basevm = microvm_factory . build ( guest_kernel , rootfs )
421
+ basevm = uvm_plain_any
423
422
basevm .spawn ()
424
423
basevm .basic_config (track_dirty_pages = True )
425
424
basevm .add_net_iface ()
@@ -451,15 +450,15 @@ def test_diff_snapshot_overlay(guest_kernel, rootfs, microvm_factory):
451
450
# Check that the restored VM works
452
451
453
452
454
- def test_snapshot_overwrite_self (guest_kernel , rootfs , microvm_factory ):
453
+ def test_snapshot_overwrite_self (uvm_plain_any , microvm_factory ):
455
454
"""Tests that if we try to take a snapshot that would overwrite the
456
455
very file from which the current VM is stored, nothing happens.
457
456
458
457
Note that even though we map the file as MAP_PRIVATE, the documentation
459
458
of mmap does not specify what should happen if the file is changed after being
460
459
mmap'd (https://man7.org/linux/man-pages/man2/mmap.2.html). It seems that
461
460
these changes can propagate to the mmap'd memory region."""
462
- base_vm = microvm_factory . build ( guest_kernel , rootfs )
461
+ base_vm = uvm_plain_any
463
462
base_vm .spawn ()
464
463
base_vm .basic_config ()
465
464
base_vm .add_net_iface ()
0 commit comments