def set_genhtml_bin(self, html_bin=None): if html_bin is None: html_bin = 'genhtml' rv = CliUtils.check_bin(html_bin) if not rv: self.logger.error('%s tool not found' % (html_bin)) self.html_bin = None else: self.logger.info('HTML generation utility set to ' + html_bin) self.html_bin = html_bin return rv
def set_coverage_bin(self, cov_bin=None): if cov_bin is None: cov_bin = 'lcov' rv = CliUtils.check_bin(cov_bin) if not rv: self.logger.error('None lcov_bin defined!') sys.exit(1) else: self.logger.info('coverage utility set to ' + cov_bin) self.cov_bin = cov_bin return rv