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@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;