From 34bd0d27065b25e3fb8ebf290d097d0e61948056 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Thu, 23 May 2019 10:02:33 +0100 Subject: [PATCH] Add config entry for SRU regression emails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also rename the key to SRUREGRESSIONEMAIL_ENABLE, since SRUREGRESSION_ENABLE sounds like we're turning off the regressions themselves. If only. 😜 --- britney.conf | 1 + britney.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/britney.conf b/britney.conf index 95987f5..09563b7 100644 --- a/britney.conf +++ b/britney.conf @@ -104,3 +104,4 @@ ADT_SHARED_RESULTS_CACHE = # email uploaders for stuck uploads EMAIL_ENABLE = yes +SRUREGRESSIONEMAIL_ENABLE = no diff --git a/britney.py b/britney.py index 7de27fd..52932bc 100755 --- a/britney.py +++ b/britney.py @@ -544,7 +544,7 @@ class Britney(object): self.policies.append(EmailPolicy(self.options, self.suite_info, dry_run=add_email_policy == 'dry-run')) - add_sruregression_policy = getattr(self.options, 'sruregression_enable', 'no') + add_sruregression_policy = getattr(self.options, 'sruregressionemail_enable', 'no') if add_sruregression_policy in ('yes', 'dry-run'): self.policies.append(SRUADTRegressionPolicy(self.options, self.suite_info,