[tools 2/3] testbot/SetWinLocale: Provide a dummy reboot reason.

Francois Gouget fgouget at codeweavers.com
Tue Feb 8 16:46:25 CST 2022


This matches LibvirtTool.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
I believe a reason was added to LibvirtTool because the (some?) Windows 
server editions require a shutdown reason, even if it is a dummy one. I 
don't know if the same is true for reboots. SetWinLocale has probably 
not been used on the Windows server editions so far.

 testbot/bin/SetWinLocale | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/bin/SetWinLocale b/testbot/bin/SetWinLocale
index dc551853af..818a67b31d 100755
--- a/testbot/bin/SetWinLocale
+++ b/testbot/bin/SetWinLocale
@@ -900,7 +900,7 @@ SetWinLocales($OptSysCopy, $OptDefCopy, $OptLocale, $CountryId,
 
 if ($OptReboot)
 {
-  my $Cmd = ["shutdown.exe", "/r", "/t", "0"];
+  my $Cmd = ["shutdown.exe", "/r", "/d", "00:00", "/t", "0"];
   Debug(Elapsed($Start), " Rebooting: ", join(" ", @$Cmd), "\n");
   my $OldCount =  $TA->GetProperties("start.count");
   $TA->Run($Cmd, 0);
-- 
2.30.2




More information about the wine-devel mailing list