Allow piuparts policy to be disabled by config

ubuntu/dry-run
Iain Lane 5 years ago committed by Iain Lane
parent 7ed335893e
commit 56c066b753

@ -511,6 +511,7 @@ class Britney(object):
self._policy_engine.add_policy(DependsPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(DependsPolicy(self.options, self.suite_info))
self._policy_engine.add_policy(RCBugPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(RCBugPolicy(self.options, self.suite_info))
if getattr(self.options, 'piuparts_enable', 'yes') == 'yes':
self._policy_engine.add_policy(PiupartsPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(PiupartsPolicy(self.options, self.suite_info))
if getattr(self.options, 'adt_enable') == 'yes': if getattr(self.options, 'adt_enable') == 'yes':
self._policy_engine.add_policy(AutopkgtestPolicy(self.options, self.suite_info)) self._policy_engine.add_policy(AutopkgtestPolicy(self.options, self.suite_info))

Loading…
Cancel
Save