From 25875e7a27ba401fa9bae9f030deb7bfebce8fb8 Mon Sep 17 00:00:00 2001 From: Aleksa Svitlica Date: Sun, 8 Jan 2023 11:10:48 -0500 Subject: [PATCH] Add CLOUD_ENABLE option to config Updated to match other optional policies in how they are enabled or set to dry-run. --- britney.conf | 3 +++ britney.py | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/britney.conf b/britney.conf index 52f5b4c..d1c7176 100644 --- a/britney.conf +++ b/britney.conf @@ -122,3 +122,6 @@ SRUREGRESSIONEMAIL_ENABLE = no # we don't run piuparts testing in Ubuntu PIUPARTS_ENABLE = no + +# run cloud tests on packages +CLOUD_ENABLE = yes diff --git a/britney.py b/britney.py index 673a027..8afb51a 100755 --- a/britney.py +++ b/britney.py @@ -553,7 +553,11 @@ class Britney(object): self._policy_engine.add_policy(EmailPolicy(self.options, self.suite_info, dry_run=add_email_policy == 'dry-run')) - self._policy_engine.add_policy(CloudPolicy(self.options, self.suite_info, dry_run=self.options.dry_run)) + add_cloud_policy = getattr(self.options, 'cloud_enable', 'no') + if add_cloud_policy in ('yes', 'dry-run'): + self._policy_engine.add_policy(CloudPolicy(self.options, + self.suite_info, + dry_run=add_cloud_policy == 'dry-run')) @property def hints(self):