From: Serge Rehbinder Date: Tue, 15 Nov 2016 13:48:53 +0000 (+0100) Subject: sat job: add a red broken link when a command crashs X-Git-Tag: 5.0.0a1~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c044d39d5fb6417a0467992852c53d4d36d2a6fb;p=tools%2Fsat.git sat job: add a red broken link when a command crashs --- diff --git a/commands/job.py b/commands/job.py index ba7cd28..b3aa953 100644 --- a/commands/job.py +++ b/commands/job.py @@ -145,8 +145,12 @@ def run(args, runner, logger): traceback.print_tb(exc_traceback, file=fp) fp.seek(0) stack = fp.read() + logger.add_link(_("Dead Link"), + sat_command_name, + code, + "ERROR: %s TRACEBACK: %s" % (error, + stack.replace('"',"'"))) - # Print the status of the command if code == 0: nb_pass += 1 diff --git a/commands/jobs.py b/commands/jobs.py index 16940ab..288da40 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -1618,6 +1618,10 @@ def run(args, runner, logger): gui = None if options.publish: + logger.write(src.printcolors.printcInfo( + _("Initialize the xml boards : ")), 5) + logger.flush() + # Copy the stylesheets in the log directory log_dir = runner.cfg.USER.log_dir xsl_dir = os.path.join(runner.cfg.VARS.srcDir, 'xsl') @@ -1636,6 +1640,10 @@ def run(args, runner, logger): runner.cfg.VARS.datehour, file_boards = options.input_boards) + logger.write(src.printcolors.printcSuccess("OK"), 5) + logger.write("\n\n", 5) + logger.flush() + # Display the list of the xml files logger.write(src.printcolors.printcInfo(("Here is the list of published" " files :\n")), 4) @@ -1645,9 +1653,9 @@ def run(args, runner, logger): 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) - + today_jobs.gui = gui interruped = False