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: