Fixing a few mistakes on mail lookup

This commit is contained in:
Sergio Durigan Junior 2016-07-26 14:07:09 -04:00
parent 369cd7753f
commit 0fa33d5401

View file

@ -26,6 +26,8 @@ from buildbot.steps.slave import RemoveDirectory
from buildbot.changes.filter import ChangeFilter
from buildbot.buildslave import BuildSlave
from buildbot.status.results import SUCCESS, WARNINGS, FAILURE, EXCEPTION
from buildbot.interfaces import IEmailLookup
from zope.interface import implements
from gdbcommand import CopyOldGDBSumFile, GdbCatSumfileCommand
from gdbgitdb import SaveGDBResults, get_builder_commit_id
from racyanalyze import GDBAnalyzeRacyTests
@ -565,7 +567,7 @@ mn = MyMailNotifier(fromaddr = GDB_MAIL_FROM,
'In-Reply-To' : WithProperties ("<%s@gdb-build>",
'got_revision') })
class MyLookupEmail (object):
class LookupEmailTryBuild (object):
implements (interfaces.IEmailLookup)
def getAddress (self, name):
@ -583,9 +585,10 @@ class MyLookupEmail (object):
return m.group (1)
mn_try = MyMailNotifier(fromaddr = GDB_MAIL_FROM,
sendToInterestedUsers = True,
mode = ( 'failing', 'passing', 'warnings' ),
messageFormatter = MessageGDBTestersTryBuild,
lookup = MyLookupEmail,
lookup = LookupEmailTryBuild (),
tags = [ "MAIL", "TRY" ],
extraHeaders = { 'X-GDB-Buildbot' : '1',
'In-Reply-To' : WithProperties ("<%s-try@gdb-build>",