ci: Update test_snapshot_restore by resuming the VM

Now that snapshot/restore is symmetrical, that is the VM must be paused
before it is snapshot and it must be resumed after it's been restored,
the integration test is updated accordingly.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2020-06-22 17:17:01 +02:00 committed by Samuel Ortiz
parent e382dc6657
commit b5cf150ac3

View File

@ -4629,6 +4629,9 @@ mod tests {
// Wait for the VM to be restored
thread::sleep(std::time::Duration::new(10, 0));
// Resume the VM
aver!(tb, remote_command(&api_socket, "resume", None));
// Perform same checks to validate VM has been properly restored
aver_eq!(tb, guest.get_cpu_count().unwrap_or_default(), 1);
aver!(tb, guest.get_total_memory().unwrap_or_default() > 3_968_000);