Francois Gouget : testbot/SetWinLocale: Don' t delete the Windows commands in debug mode.

Alexandre Julliard julliard at winehq.org
Tue Sep 3 16:32:35 CDT 2019


Module: tools
Branch: master
Commit: 4bf153802e7395fb92b6bd8735b20d7c4ec798d0
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=4bf153802e7395fb92b6bd8735b20d7c4ec798d0

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Sep  3 03:53:03 2019 +0200

testbot/SetWinLocale: Don't delete the Windows commands in debug mode.

This makes it possible to analyze or re-run them manually.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/scripts/SetWinLocale | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/testbot/scripts/SetWinLocale b/testbot/scripts/SetWinLocale
index 824d8f5..7477c5d 100755
--- a/testbot/scripts/SetWinLocale
+++ b/testbot/scripts/SetWinLocale
@@ -805,8 +805,15 @@ if (!$DryRun)
     FatalError("could not run intl.cpl: ", $TA->GetLastError(), "\n");
   }
 
-  $TA->Rm("script.bat");
-  $TA->Rm("locales.xml");
+  if ($Debug)
+  {
+    print STDERR "Not deleting script.bat and locales.xml\n";
+  }
+  else
+  {
+    $TA->Rm("script.bat");
+    $TA->Rm("locales.xml");
+  }
 }
 
 if ($OptReboot)




More information about the wine-cvs mailing list