Add CLOUD_ENABLE option to config

Updated to match other optional policies in how they are enabled or set
to dry-run.
sil2100/cloud-only-run-once
Aleksa Svitlica 2 years ago
parent 436626145b
commit 25875e7a27

@ -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

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

Loading…
Cancel
Save