From d01fb4a18eb3a173893233e73e3af05b07d82da1 Mon Sep 17 00:00:00 2001 From: fijal Date: Mon, 12 Feb 2007 14:14:36 +0100 Subject: [PATCH] [svn r38559] Give info about tests in case of failure/interruption --HG-- branch : trunk --- py/test/rsession/repevent.py | 6 ++++-- py/test/rsession/reporter.py | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/py/test/rsession/repevent.py b/py/test/rsession/repevent.py index b14e50404..0a2ed3a93 100644 --- a/py/test/rsession/repevent.py +++ b/py/test/rsession/repevent.py @@ -137,7 +137,9 @@ class PongReceived(ReportEvent): 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() diff --git a/py/test/rsession/reporter.py b/py/test/rsession/reporter.py index c88d3d31c..e151f0272 100644 --- a/py/test/rsession/reporter.py +++ b/py/test/rsession/reporter.py @@ -119,7 +119,10 @@ class AbstractReporter(object): 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: