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:
Robert Bruce Park 2016-01-19 17:33:01 -08:00 committed by Martin Pitt
parent 0c73ebfa98
commit f32a8e37da

View File

@ -471,7 +471,7 @@ class Britney(object):
self.log("Cannot use --control-files with mirror-layout (components)!", type="E") self.log("Cannot use --control-files with mirror-layout (components)!", type="E")
sys.exit(1) sys.exit(1)
if not hasattr(self.options, "heidi_delta_output"): if self.options.heidi_output and not hasattr(self.options, "heidi_delta_output"):
self.options.heidi_delta_output = self.options.heidi_output + "Delta" self.options.heidi_delta_output = self.options.heidi_output + "Delta"
self.options.nobreakall_arches = self.options.nobreakall_arches.split() self.options.nobreakall_arches = self.options.nobreakall_arches.split()
@ -2478,6 +2478,7 @@ class Britney(object):
write_controlfiles(self.sources, self.binaries, write_controlfiles(self.sources, self.binaries,
'testing', self.suite_info['testing'].path) 'testing', self.suite_info['testing'].path)
if self.options.heidi_output:
# write HeidiResult # write HeidiResult
self.log("Writing Heidi results to %s" % self.options.heidi_output) self.log("Writing Heidi results to %s" % self.options.heidi_output)
write_heidi(self.options.heidi_output, self.sources["testing"], write_heidi(self.options.heidi_output, self.sources["testing"],