mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-10 10:51:08 +00:00
Make Heidi optional
Setting HEIDI_OUTPUT to an empty value will skip the heidi generation, to speed up britney in scenarios where heidi is not needed.
This commit is contained in:
parent
883f01740f
commit
c582733989
19
britney.py
19
britney.py
@ -484,7 +484,7 @@ class Britney(object):
|
||||
if self.options.series == '':
|
||||
self.options.series = self.suite_info.target_suite.name
|
||||
|
||||
if not hasattr(self.options, "heidi_delta_output"):
|
||||
if hasattr(self.options, 'heidi_output') and not hasattr(self.options, "heidi_delta_output"):
|
||||
self.options.heidi_delta_output = self.options.heidi_output + "Delta"
|
||||
|
||||
self.options.smooth_updates = self.options.smooth_updates.split()
|
||||
@ -1273,15 +1273,16 @@ class Britney(object):
|
||||
if not self.options.dry_run:
|
||||
target_suite = self.suite_info.target_suite
|
||||
|
||||
# write HeidiResult
|
||||
self.logger.info("Writing Heidi results to %s", self.options.heidi_output)
|
||||
write_heidi(self.options.heidi_output,
|
||||
target_suite,
|
||||
outofsync_arches=self.options.outofsync_arches)
|
||||
if hasattr(self.options, 'heidi_output'):
|
||||
# write HeidiResult
|
||||
self.logger.info("Writing Heidi results to %s", self.options.heidi_output)
|
||||
write_heidi(self.options.heidi_output,
|
||||
target_suite,
|
||||
outofsync_arches=self.options.outofsync_arches)
|
||||
|
||||
self.logger.info("Writing delta to %s", self.options.heidi_delta_output)
|
||||
write_heidi_delta(self.options.heidi_delta_output,
|
||||
self.all_selected)
|
||||
self.logger.info("Writing delta to %s", self.options.heidi_delta_output)
|
||||
write_heidi_delta(self.options.heidi_delta_output,
|
||||
self.all_selected)
|
||||
|
||||
self.logger.info("Test completed!")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user