Module: tools Branch: master Commit: 5e631749e52953b520f4d4bfac88a9b938c9af0e URL: http://source.winehq.org/git/tools.git/?a=commit;h=5e631749e52953b520f4d4bfa...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue Feb 21 10:29:11 2017 +0100
testbot/WineRunTask: Add the $TimedOut flag.
The log analysis code depends on it to not issue redundant errors when the task timed out.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 c21aec0..21ad8e2 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 {