class FailureTrackingTestResult(subunithelper.TestsuiteEnabledTestResult):
def __init__(self, stage):
- super(AbortingTestResult, self).__init__()
+ super(FailureTrackingTestResult, self).__init__()
self.stage = stage
def addError(self, test, details=None):
msg = MIMEMultipart()
msg['Subject'] = 'autobuild failure for task %s during %s' % (
- failed_task, failed_stage)
+ failed_task, failed_stage.name)
msg['From'] = 'autobuild@samba.org'
msg['To'] = options.email