]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat job: add a red broken link when a command crashs
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 15 Nov 2016 13:48:53 +0000 (14:48 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 15 Nov 2016 13:48:53 +0000 (14:48 +0100)
commands/job.py
commands/jobs.py

index ba7cd287992d64a611b81833f455e6af750f5696..b3aa9533ec5dae5738b96c57a5f77a323aae531e 100644 (file)
@@ -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
index 16940aba472fa78dc2153a55a297c30a30de5a6d..288da40673c2a68f0964da9a2d946ae97ba0ea50 100644 (file)
@@ -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