self.remote_log_files.append(local_path)
except Exception as e:
self.err += _("Unable to get %s log file from remote: %s" %
- (job_path_remote, str(e)))
+ (str(job_path_remote),
+ str(e)))
def has_failed(self):
'''Returns True if the job has failed.
" files :\n")), 4)
logger.write("%s\n" % gui.xml_global_file.logFile, 4)
for board in gui.d_xml_board_files.keys():
- logger.write("%s\n" % gui.d_xml_board_files[board].logFile, 4)
+ file_path = gui.d_xml_board_files[board].logFile
+ file_name = os.path.basename(file_path)
+ logger.write("%s\n" % file_path, 4)
+ logger.add_link(file_name, "board", 0, board)
logger.write("\n", 4)
class Builder:
"""Class to handle all construction steps, like cmake, configure, make, ...
"""
- def __init__(self, config, logger, product_info, options = src.options.OptResult(), debug_mode=False, check_src=True):
+ def __init__(self,
+ config,
+ logger,
+ product_info,
+ options = src.options.OptResult(),
+ debug_mode=False,
+ check_src=True):
self.config = config
self.logger = logger
self.options = options
self.add_line(1)
# If there is profile (SALOME), then define additional variables
- if 'profile' in self.cfg.APPLICATION:
+ if ('profile' in self.cfg.APPLICATION and
+ "product" in self.cfg.APPLICATION.profile):
profile_product = self.cfg.APPLICATION.profile.product
product_info_profile = src.product.get_product_config(self.cfg,
profile_product)