Francois Gouget : testbot/CheckForWinetestUpdate: Exit if we cannot replace the latest WineTest.

Alexandre Julliard julliard at winehq.org
Mon May 21 13:42:16 CDT 2018


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon May 21 08:11:07 2018 +0200

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

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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/bin/CheckForWinetestUpdate.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testbot/bin/CheckForWinetestUpdate.pl b/testbot/bin/CheckForWinetestUpdate.pl
index 37bd776..ff8c30c 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;
 




More information about the wine-cvs mailing list