Francois Gouget : testbot/LibvirtTool: Only check the start count after a reboot.
Module: tools Branch: master Commit: ff8bceb9dd42c957ebb35800aa539530995856f1 URL: https://source.winehq.org/git/tools.git/?a=commit;h=ff8bceb9dd42c957ebb35800... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Mon Dec 2 13:53:34 2019 +0100 testbot/LibvirtTool: Only check the start count after a reboot. The start count check is not related to taking live snapshots. And we can skip it if the VM was not freshly booted. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/bin/LibvirtTool.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl index bc45533..faac0b3 100755 --- a/testbot/bin/LibvirtTool.pl +++ b/testbot/bin/LibvirtTool.pl @@ -460,14 +460,14 @@ sub SetupTestAgentd($$$$) # So it all works out. $TA->SetProperty("start.count", 0); } - else + elsif ($Booting) { # Check that TestAgentd is not displaying the "Has Windows rebooted?" # warning. my $Count = $TA->GetProperties("start.count"); if (defined $Count and $Count > 1) { - FatalError("Cannot take a live snapshot because start.count=$Count > 1"); + FatalError("The VM has been rebooted too many times: start.count=$Count > 1"); } } $TA->Disconnect();
participants (1)
-
Alexandre Julliard