[Tools] testbot/WineRunTask: Add the $TimedOut flag.

Francois Gouget fgouget at codeweavers.com
Tue Feb 21 03:29:11 CST 2017


The log analysis code depends on it to not issue redundant errors when
the task timed out.

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

diff --git a/testbot/bin/WineRunTask.pl b/testbot/bin/WineRunTask.pl
index c21aec05..21ad8e2a 100755
--- a/testbot/bin/WineRunTask.pl
+++ b/testbot/bin/WineRunTask.pl
@@ -436,7 +436,7 @@ if (!$Pid)
 #
 
 my $NewStatus = 'completed';
-my ($TestFailures, $TAError, $PossibleCrash);
+my ($TestFailures, $TimedOut, $TAError, $PossibleCrash);
 Debug(Elapsed($Start), " Waiting for the script (", $Task->Timeout, "s timeout)\n");
 if (!defined $TA->Wait($Pid, $Timeout, $Keepalive))
 {
@@ -445,6 +445,7 @@ if (!defined $TA->Wait($Pid, $Timeout, $Keepalive))
   {
     LogTaskError("The test timed out\n");
     $TestFailures = 1;
+    $TimedOut = 1;
   }
   else
   {
-- 
2.11.0



More information about the wine-patches mailing list