Skip to content

Commit 86fe284

Browse files
committed
fix(test): wait for VM to boot in A/B snapshot test
Otherwise, we might take the snapshot way to early and upon resume sending the VMGenID notification might crash the guest kernel. Signed-off-by: Babis Chalios <[email protected]>
1 parent ab05d85 commit 86fe284

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration_tests/performance/test_snapshot_ab.py

+4
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ def test_restore_latency(
145145
vm = test_setup.configure_vm(microvm_factory, guest_kernel_linux_4_14, rootfs)
146146
vm.start()
147147

148+
# Make sure the guest has booted before taking snapshot.
149+
exit_code, _, _ = vm.ssh.run("true")
150+
assert exit_code == 0
151+
148152
metrics.set_dimensions(
149153
{
150154
"performance_test": "test_restore_latency",

0 commit comments

Comments
 (0)