[Tools 3/3] testbot/LibvirtTool: Give enough time for the VM to boot.
Francois Gouget <[email protected]>
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <E1e6zZA-0000Bz-2E@amboise> |
In particular if the VM has not been used for a while one can get "No route to host" errors in quick succession. It's only once the VM has reclaimed its IP address that this error goes away. Signed-off-by: Francois Gouget <[email protected]> --- testbot/bin/LibvirtTool.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl index 937821f6..670c5535 100755 --- a/testbot/bin/LibvirtTool.pl +++ b/testbot/bin/LibvirtTool.pl @@ -361,7 +361,7 @@ sub Revert() Debug(Elapsed($Start), " Trying the TestAgent connection\n"); LogMsg "Waiting for ". $VM->Name ." (up to ${WaitForToolsInVM}s per attempt)\n"; my $TA = $VM->GetAgent(); - $TA->SetConnectTimeout($WaitForToolsInVM); + $TA->SetConnectTimeout($WaitForToolsInVM, undef, $WaitForToolsInVM); my $Success = $TA->Ping(); $TA->Disconnect(); if (!$Success) -- 2.14.2