From a2288799039e570a0e647db1b3488314265819aa Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 5 Oct 2010 12:43:09 +0200 Subject: [PATCH] land: Fix stage description during failure. --- script/land.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/land.py b/script/land.py index a92fa44f64..6b25134d5d 100755 --- a/script/land.py +++ b/script/land.py @@ -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 -- 2.34.1