Skip to content

Commit

Permalink
fixed 41
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbinbao committed Jun 20, 2014
1 parent e636514 commit 372e1c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ def startTest(self, test):
if self.write_hashes:
self.__write('#%s %s ' % (str(self.tid), str(ctx.case_start_time)))


def handleFailure(self, test, err):
'''
Called on addFailure. To handle the failure yourself and prevent normal failure processing, return a true value.
Expand Down Expand Up @@ -892,7 +891,6 @@ def addError(self, test, err, capt=None):
logger.debug('error: +\n'+str(e))
if self.__timer and not self.__timer.alive():
self.conf.stopOnError = True

if self.opt.livereport:
self.__report_client.updateTestCase(**self.result_properties)

Expand Down Expand Up @@ -967,4 +965,7 @@ def finalize(self, result):
session_properties.update({'endtime': _reportTime()})
self.__report_client.updateSession(**session_properties)
sys.exit(1)
if self.conf.stopOnError:
sys.stderr.write('runner exit due to duration timeout\n')
sys.exit(1)
return None

0 comments on commit 372e1c1

Please sign in to comment.