Adjusting args to isMailNeeded
This commit is contained in:
parent
535ddd5f45
commit
75c85fbf6c
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue