Adjusting args to isMailNeeded

This commit is contained in:
Sergio Durigan Junior 2016-03-16 12:24:34 -04:00
parent 535ddd5f45
commit 75c85fbf6c
2 changed files with 3 additions and 3 deletions

View file

@ -321,7 +321,7 @@
},
{ "type" : "Nightly", "name" : "racy",
"dayOfWeek" : "1", "hour" : "22", "minute" : "10",
"dayOfWeek" : "1", "hour" : "22", "minute" : "30",
"builderNames" : [ "Fedora-x86_64-m64",
"Fedora-x86_64-m32",
"Fedora-x86_64-native-gdbserver-m64",

View file

@ -390,9 +390,9 @@ from buildbot.status import mail
class MyMailNotifier (mail.MailNotifier):
"""Extend the regular MailNotifier class in order to filter e-mails by
scheduler."""
def isMailNeeded (self, build):
def isMailNeeded (self, build, results):
if build.properties.getProperty ('scheduler') != 'racy':
return mail.MailNotifier.isMailNeeded (self, build)
return mail.MailNotifier.isMailNeeded (self, build, results)
else:
return False