SetWinLocale already waits for Windows to be ready to check that the locales changed as expected.
Signed-off-by: Francois Gouget fgouget@codeweavers.com --- testbot/bin/LibvirtTool.pl | 15 --------------- 1 file changed, 15 deletions(-)
diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl index 70dfd34634..0635f5ff51 100755 --- a/testbot/bin/LibvirtTool.pl +++ b/testbot/bin/LibvirtTool.pl @@ -680,21 +680,6 @@ sub Revert() FatalError("Could not set the $VMKey locale to $SetLocale\n"); }
- Debug(Elapsed($Start), " Wait for the $VMKey locale-setting reboot to complete\n"); - LogMsg "Wait for the $VMKey locale-setting reboot to complete\n"; - while (1) - { - my $TA = $VM->GetAgent(); - my $Count = $TA->GetProperties("start.count"); - $TA->Disconnect(); - - # SetupTestAgentd() has reset start.count to zero. - # It will only change after the reboot. - last if (defined $Count and $Count != 0); - - sleep(1); - } - $DomainSnapshot .= "-$SetLocale"; CreateSnapshot($Domain, $DomainSnapshot); }