From f32a8e37da15a3fe40d376dc0e420b83e2ecd56e Mon Sep 17 00:00:00 2001 From: Robert Bruce Park Date: Tue, 19 Jan 2016 17:33:01 -0800 Subject: [PATCH] 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. --- britney.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/britney.py b/britney.py index ff62ed2..3eb0301 100755 --- a/britney.py +++ b/britney.py @@ -471,7 +471,7 @@ class Britney(object): self.log("Cannot use --control-files with mirror-layout (components)!", type="E") 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.nobreakall_arches = self.options.nobreakall_arches.split() @@ -2478,14 +2478,15 @@ class Britney(object): write_controlfiles(self.sources, self.binaries, 'testing', self.suite_info['testing'].path) - # write HeidiResult - self.log("Writing Heidi results to %s" % self.options.heidi_output) - write_heidi(self.options.heidi_output, self.sources["testing"], - self.binaries["testing"]) + if self.options.heidi_output: + # write HeidiResult + self.log("Writing Heidi results to %s" % self.options.heidi_output) + write_heidi(self.options.heidi_output, self.sources["testing"], + self.binaries["testing"]) - self.log("Writing delta to %s" % self.options.heidi_delta_output) - write_heidi_delta(self.options.heidi_delta_output, - self.all_selected) + self.log("Writing delta to %s" % self.options.heidi_delta_output) + write_heidi_delta(self.options.heidi_delta_output, + self.all_selected) self.printuninstchange()