Skip to content

Commit bb1edd1

Browse files
committed
fix(test): validate restored test works in test_valid_handler
In test_valid_handler, we had a comment to validate that the guest still works if we mess with the balloon after UFFD-based restoration. However, we didn't actually do so. Fix this by running some simple SSH command after both inflation and deflation. Signed-off-by: Patrick Roy <[email protected]>
1 parent 0d2713b commit bb1edd1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration_tests/functional/test_uffd.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,14 @@ def test_valid_handler(uvm_plain, snapshot, uffd_handler_paths):
118118
# Inflate balloon.
119119
vm.api.balloon.patch(amount_mib=200)
120120

121+
# Verify if the restored guest works.
122+
vm.ssh.check_output("true")
123+
121124
# Deflate balloon.
122125
vm.api.balloon.patch(amount_mib=0)
123126

124127
# Verify if the restored guest works.
128+
vm.ssh.check_output("true")
125129

126130

127131
def test_malicious_handler(uvm_plain, snapshot, uffd_handler_paths):

0 commit comments

Comments
 (0)