File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 19
19
import host_tools .drive as drive_tools
20
20
import host_tools .network as net_tools
21
21
from framework import utils
22
- from framework .microvm import SnapshotType
23
22
from framework .properties import global_props
24
23
from framework .utils import check_filesystem , check_output
25
24
from framework .utils_vsock import (
@@ -132,14 +131,13 @@ def test_cycled_snapshot_restore(
132
131
cycles = 3
133
132
134
133
logger = logging .getLogger ("snapshot_sequence" )
135
- diff_snapshots = snapshot_type == SnapshotType .DIFF
136
134
137
135
vm = microvm_factory .build (guest_kernel , rootfs )
138
136
vm .spawn ()
139
137
vm .basic_config (
140
138
vcpu_count = 2 ,
141
139
mem_size_mib = 512 ,
142
- track_dirty_pages = diff_snapshots ,
140
+ track_dirty_pages = snapshot_type . needs_dirty_page_tracking ,
143
141
)
144
142
vm .set_cpu_template (cpu_template_any )
145
143
vm .add_net_iface ()
Original file line number Diff line number Diff line change 11
11
import pytest
12
12
13
13
import host_tools .drive as drive_tools
14
- from framework .microvm import HugePagesConfig , Microvm , SnapshotType
14
+ from framework .microvm import HugePagesConfig , Microvm
15
15
16
16
USEC_IN_MSEC = 1000
17
17
NS_IN_MSEC = 1_000_000
@@ -266,7 +266,7 @@ def test_snapshot_create_latency(
266
266
vm .basic_config (
267
267
vcpu_count = 2 ,
268
268
mem_size_mib = 512 ,
269
- track_dirty_pages = snapshot_type == SnapshotType . DIFF ,
269
+ track_dirty_pages = snapshot_type . needs_dirty_page_tracking ,
270
270
)
271
271
vm .start ()
272
272
vm .pin_threads (0 )
You can’t perform that action at this time.
0 commit comments