From 483c9676f86b2efaca2f2eef4c08e6c4a34977b7 Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Thu, 18 Feb 2021 14:52:34 +0100 Subject: [PATCH] snapshot-test: mock query-savevm better Otherwise the new printing functions produce warnings about undefined numbers. These stats are guaranteed to be returned by real QEMU, so mock them with some sensible values. Signed-off-by: Stefan Reiter --- test/snapshot-test.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/snapshot-test.pm b/test/snapshot-test.pm index 8f9f60a8..f65a902c 100644 --- a/test/snapshot-test.pm +++ b/test/snapshot-test.pm @@ -342,7 +342,11 @@ sub qmp_cmd { return; } if ($exec eq "query-savevm") { - return { "status" => "completed" }; + return { + "status" => "completed", + "bytes" => 1024*1024*1024, + "total-time" => 5000, + }; } die "unexpected vm_qmp_command!\n"; }