mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-14 20:51:11 +00:00
Skip second-stage upgrade testing if UPGRADE_OUTPUT option is absent or empty
This is useful to speed up britney in dry run mode, if we are only interested in builds and package tests.
This commit is contained in:
parent
e987fedd80
commit
0c73ebfa98
@ -2734,6 +2734,13 @@ class Britney(object):
|
||||
for policy in self.policies:
|
||||
policy.save_state(self)
|
||||
|
||||
# skip upgrade testing if UPGRADE_OUTPUT option is absent or empty
|
||||
try:
|
||||
if not self.options.upgrade_output:
|
||||
return
|
||||
except AttributeError:
|
||||
return
|
||||
|
||||
with open(self.options.upgrade_output, 'w', encoding='utf-8') as f:
|
||||
self.__output = f
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user