[PATCH] testbot/CheckForWinetestUpdate: Exit if we cannot replace the latest WineTest.

Francois Gouget fgouget at codeweavers.com
Mon May 21 01:11:07 CDT 2018


Otherwise we would create jobs that test the old (presumably already
tested) WineTest and the next CheckWinetestUpdate run will redo it all
anyway.

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

diff --git a/testbot/bin/CheckForWinetestUpdate.pl b/testbot/bin/CheckForWinetestUpdate.pl
index 37bd776f2..ff8c30c23 100755
--- a/testbot/bin/CheckForWinetestUpdate.pl
+++ b/testbot/bin/CheckForWinetestUpdate.pl
@@ -238,6 +238,8 @@ mkdir "$DataDir/latest";
 if (!move($StagingFileName, $LatestFileName))
 {
   LogMsg "Could not move '$StagingFileName' to '$LatestFileName': $!\n";
+  unlink($StagingFileName);
+  exit 1;
 }
 utime time, $Response->last_modified, $LatestFileName;
 
-- 
2.17.0



More information about the wine-devel mailing list