[py-svn] r38559 - py/trunk/py/test/rsession

fijal at codespeak.net fijal at codespeak.net
Mon Feb 12 14:14:37 CET 2007


Author: fijal
Date: Mon Feb 12 14:14:36 2007
New Revision: 38559

Modified:
   py/trunk/py/test/rsession/repevent.py
   py/trunk/py/test/rsession/reporter.py
Log:
Give info about tests in case of failure/interruption


Modified: py/trunk/py/test/rsession/repevent.py
==============================================================================
--- py/trunk/py/test/rsession/repevent.py	(original)
+++ py/trunk/py/test/rsession/repevent.py	Mon Feb 12 14:14:36 2007
@@ -137,7 +137,9 @@
         self.result = result
 
 class InterruptedExecution(ReportEvent):
-    pass
+    def __init__(self):
+        self.timeend = time.time()
 
 class CrashedExecution(ReportEvent):
-    pass
+    def __init__(self):
+        self.timeend = time.time()

Modified: py/trunk/py/test/rsession/reporter.py
==============================================================================
--- py/trunk/py/test/rsession/reporter.py	(original)
+++ py/trunk/py/test/rsession/reporter.py	Mon Feb 12 14:14:36 2007
@@ -119,7 +119,10 @@
             self.hangs()
         self.summary()
         return len(self.failed_tests_outcome) > 0
-    
+
+    report_InterruptedExecution = report_TestFinished
+    report_CrashedExecution = report_TestFinished
+
     def hangs(self):
         h = []
         if self.config.option.exitfirst:


More information about the py-svn mailing list