File tree 1 file changed +13
-0
lines changed
tests/integration_tests/functional 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import pytest
9
9
10
+ from framework .microvm import SnapshotType
10
11
import framework .utils_cpuid as cpuid_utils
11
12
from framework .utils_cpuid import CpuModel
12
13
@@ -108,6 +109,12 @@ def test_cpu_features_with_static_template(
108
109
guest_kv = re .search (r"vmlinux-(\d+\.\d+)" , guest_kernel .name ).group (1 )
109
110
_check_cpu_features_arm (vm , guest_kv , "v1n1" )
110
111
112
+ snapshot = vm .make_snapshot (SnapshotType .FULL )
113
+ restored_vm = microvm_factory .build ()
114
+ restored_vm .spawn ()
115
+ restored_vm .restore_from_snapshot (snapshot , resume = True )
116
+ _check_cpu_features_arm (restored_vm , guest_kv , "v1n1" )
117
+
111
118
112
119
@pytest .mark .skipif (
113
120
PLATFORM != "aarch64" ,
@@ -128,3 +135,9 @@ def test_cpu_features_with_custom_template(
128
135
vm .start ()
129
136
guest_kv = re .search (r"vmlinux-(\d+\.\d+)" , guest_kernel .name ).group (1 )
130
137
_check_cpu_features_arm (vm , guest_kv , custom_cpu_template ["name" ])
138
+
139
+ snapshot = vm .make_snapshot (SnapshotType .FULL )
140
+ restored_vm = microvm_factory .build ()
141
+ restored_vm .spawn ()
142
+ restored_vm .restore_from_snapshot (snapshot , resume = True )
143
+ _check_cpu_features_arm (restored_vm , guest_kv , custom_cpu_template ["name" ])
You can’t perform that action at this time.
0 commit comments