Skip to content

Commit

Permalink
fix(test): wait for VM to boot in A/B snapshot test
Browse files Browse the repository at this point in the history
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 <bchalios@amazon.es>
  • Loading branch information
bchalios committed Apr 10, 2024
1 parent ab05d85 commit 86fe284
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration_tests/performance/test_snapshot_ab.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def test_restore_latency(
vm = test_setup.configure_vm(microvm_factory, guest_kernel_linux_4_14, rootfs)
vm.start()

# Make sure the guest has booted before taking snapshot.
exit_code, _, _ = vm.ssh.run("true")
assert exit_code == 0

metrics.set_dimensions(
{
"performance_test": "test_restore_latency",
Expand Down

0 comments on commit 86fe284

Please sign in to comment.