Module: tools Branch: master Commit: 98c234f57c021abda4f07af80549f638e1188744 URL: https://source.winehq.org/git/tools.git/?a=commit;h=98c234f57c021abda4f07af8...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue Dec 10 10:35:19 2019 +0100
testbot/WineSendLog: Skip checking for new errors if there are no errors.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/bin/WineSendLog.pl | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/testbot/bin/WineSendLog.pl b/testbot/bin/WineSendLog.pl index 95cc036..98bfc4c 100755 --- a/testbot/bin/WineSendLog.pl +++ b/testbot/bin/WineSendLog.pl @@ -287,6 +287,9 @@ EOF foreach my $LogName (@{$JobErrors->{$Key}->{LogNames}}) { my $LogErrors = $JobErrors->{$Key}->{$LogName}; + # Skip if there are no errors + next if (!$LogErrors->{Groups}); + my $RefFileName = $StepTask->GetFullFileName($StepTask->VM->Name ."_$LogName"); my ($NewGroups, $NewErrors, $_NewIndices) = GetNewLogErrors($RefFileName, $LogErrors->{Groups}, $LogErrors->{Errors}); if (!$NewGroups)