Make sure there are errors to report even when there is no reference log which is typical of build logs.
Signed-off-by: Francois Gouget fgouget@codeweavers.com ---
This will stop WineSendLog from sending an email for jobs such as 43971 where there is no new error, and the only 'build' error is that user32:msg prints too much data.
https://testbot.winehq.org/JobDetails.pl?Key=43971
testbot/bin/WineSendLog.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/bin/WineSendLog.pl b/testbot/bin/WineSendLog.pl index bb6dab51ad..a651c097e8 100755 --- a/testbot/bin/WineSendLog.pl +++ b/testbot/bin/WineSendLog.pl @@ -296,7 +296,7 @@ EOF $NewGroups = $LogErrors->{Groups}; $NewErrors = $LogErrors->{Errors}; } - elsif (!@$NewGroups) + if (!$NewGroups or !@$NewGroups) { # There is no new error next;