File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
tests/integration_tests/functional Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,14 @@ def test_cpu_features_with_static_template(
108
108
guest_kv = re .search (r"vmlinux-(\d+\.\d+)" , guest_kernel .name ).group (1 )
109
109
_check_cpu_features_arm (vm , guest_kv , "v1n1" )
110
110
111
+ # Check that cpu features are still correct
112
+ # after snap/restore cycle.
113
+ snapshot = vm .snapshot_full ()
114
+ restored_vm = microvm_factory .build ()
115
+ restored_vm .spawn ()
116
+ restored_vm .restore_from_snapshot (snapshot , resume = True )
117
+ _check_cpu_features_arm (restored_vm , guest_kv , "v1n1" )
118
+
111
119
112
120
@pytest .mark .skipif (
113
121
PLATFORM != "aarch64" ,
@@ -128,3 +136,11 @@ def test_cpu_features_with_custom_template(
128
136
vm .start ()
129
137
guest_kv = re .search (r"vmlinux-(\d+\.\d+)" , guest_kernel .name ).group (1 )
130
138
_check_cpu_features_arm (vm , guest_kv , custom_cpu_template ["name" ])
139
+
140
+ # Check that cpu features are still correct
141
+ # after snap/restore cycle.
142
+ snapshot = vm .snapshot_full ()
143
+ restored_vm = microvm_factory .build ()
144
+ restored_vm .spawn ()
145
+ restored_vm .restore_from_snapshot (snapshot , resume = True )
146
+ _check_cpu_features_arm (restored_vm , guest_kv , custom_cpu_template ["name" ])
You can’t perform that action at this time.
0 commit comments