Module: tools Branch: master Commit: 4bf153802e7395fb92b6bd8735b20d7c4ec798d0 URL: https://source.winehq.org/git/tools.git/?a=commit;h=4bf153802e7395fb92b6bd87...
Author: Francois Gouget fgouget@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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)