Module: tools
Branch: master
Commit: f6578425933ae77ec2b7014ac3380be628a170e8
URL: http://source.winehq.org/git/tools.git/?a=commit;h=f6578425933ae77ec2b7014a…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Oct 24 12:16:10 2012 +0200
testbot/RevertVM: Mark a VM as offline if WaitForToolsInGuest() fails.
If the tools (i.e. testagentd) don't respond, we will be unable to start tasks on that VM anyway.
---
testbot/bin/RevertVM.pl | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/testbot/bin/RevertVM.pl b/testbot/bin/RevertVM.pl
index fbf479f..743760f 100755
--- a/testbot/bin/RevertVM.pl
+++ b/testbot/bin/RevertVM.pl
@@ -104,14 +104,11 @@ foreach my $WaitCount (1..3)
{
LogMsg "Waiting for ", $VM->Name, " (up to ${WaitForToolsInVM}s)\n";
$ErrMessage = $VM->WaitForToolsInGuest($WaitForToolsInVM);
- if (! defined($ErrMessage))
- {
- last;
- }
+ last if (!defined $ErrMessage);
}
-if (defined($ErrMessage))
+if (defined $ErrMessage)
{
- LogMsg "$VMKey Error while waiting for tools: $ErrMessage\n";
+ FatalError "Tools in $VMKey not responding: $ErrMessage", $VM;
}
if ($SleepAfterRevert != 0)
Module: tools
Branch: master
Commit: f6608b629242d1d146d65c2a7a38f0fa918ad0e7
URL: http://source.winehq.org/git/tools.git/?a=commit;h=f6608b629242d1d146d65c2a…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Oct 24 12:15:48 2012 +0200
testbot/VMs: Always let the caller specify the WaitForToolsInGuest() timeout.
There is only one caller and it already knows the timeout.
---
testbot/lib/WineTestBot/VMs.pm | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/testbot/lib/WineTestBot/VMs.pm b/testbot/lib/WineTestBot/VMs.pm
index 6dc8b8a..a356e98 100644
--- a/testbot/lib/WineTestBot/VMs.pm
+++ b/testbot/lib/WineTestBot/VMs.pm
@@ -344,11 +344,10 @@ sub PowerOff
return $self->UpdateStatus($Domain);
}
-sub WaitForToolsInGuest($;$)
+sub WaitForToolsInGuest($$)
{
my ($self, $Timeout) = @_;
- $Timeout ||= $WaitForToolsInVM;
my ($Status, $Err) = TestAgent::GetStatus($self->Hostname, $Timeout);
# In fact we don't care about the status
return $Err;