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):