[PATCH] testbot/LibvirtTool: Only check the start count after a reboot.
Francois Gouget
fgouget at codeweavers.com
Mon Dec 2 06:53:34 CST 2019
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 at codeweavers.com>
---
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 e5dc8372e..a2939e738 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -463,14 +463,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();
--
2.20.1
More information about the wine-devel
mailing list