a few messages to help understand how all steps being OK can result in a build failure
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 24 Jun 2010 20:52:56 +0000 (22:52 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 24 Jun 2010 20:52:56 +0000 (22:52 +0200)
system/TestMain.py

index ac6edd5..360f918 100755 (executable)
@@ -308,6 +308,7 @@ steps refer to a method in TestPlc or to a step_* module
         # do all steps on all plcs
         TRACE_FORMAT="TRACE: time=%(time)s status=%(status)s step=%(stepname)s plc=%(plcname)s force=%(force)s\n"
         for (stepname,method,force) in all_step_infos:
+            print "Entering step %(stepname)s with overall=%(overall_result)r"%locals()
             for (spec,obj) in all_plcs:
                 plcname=spec['name']
 
@@ -374,6 +375,7 @@ steps refer to a method in TestPlc or to a step_* module
                         trace.write(TRACE_FORMAT%locals())
                         trace.flush()
 
+        print "After last step, overall=%(overall_result)r"%locals()
         if self.options.trace_file and not self.options.dry_run:
             trace.close()
 
@@ -388,6 +390,7 @@ steps refer to a method in TestPlc or to a step_* module
             else:
                 return 1 
         except SystemExit:
+            print 'Caught SystemExit'
             raise
         except:
             traceback.print_exc()