[tools] testbot/LibvirtTool: SetWinLocale does not support --vm anymore.

Francois Gouget fgouget at codeweavers.com
Tue Jan 11 12:44:12 CST 2022


Also pass the --debug option if appropriate.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/bin/LibvirtTool.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index c4dbffbaad..70dfd34634 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -673,7 +673,9 @@ sub Revert()
   if ($SetLocale)
   {
     Debug(Elapsed($Start), " Setting up the $SetLocale locale on $VMKey\n");
-    if (system("$BinDir/SetWinLocale", "--vm", $VMKey, "--default", $SetLocale))
+    my @Cmd = ("$BinDir/SetWinLocale", $VM->Hostname, "--default", $SetLocale);
+    push @Cmd, "--debug" if ($Debug);
+    if (system(@Cmd))
     {
       FatalError("Could not set the $VMKey locale to $SetLocale\n");
     }
-- 
2.30.2



More information about the wine-devel mailing list