land: Fix stage description during failure.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 5 Oct 2010 10:43:09 +0000 (12:43 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 5 Oct 2010 21:56:10 +0000 (23:56 +0200)
script/land.py

index a92fa44f64904c83af3ae83d5b2859fdbcab7af2..6b25134d5d3ca6ab18d0df68148ef97a17cba376 100755 (executable)
@@ -183,7 +183,7 @@ class AbortingTestResult(subunithelper.TestsuiteEnabledTestResult):
 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):
@@ -581,7 +581,7 @@ The top commit for the tree that was built was:
 
     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