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

Francois Gouget fgouget at codeweavers.com
Mon Sep 2 20:53:03 CDT 2019


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

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/scripts/SetWinLocale | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/testbot/scripts/SetWinLocale b/testbot/scripts/SetWinLocale
index a6015635..76f2edbf 100755
--- a/testbot/scripts/SetWinLocale
+++ b/testbot/scripts/SetWinLocale
@@ -807,8 +807,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)
-- 
2.20.1




More information about the wine-devel mailing list