run-tests: emit exception failure result from Test.run()

This commit is contained in:
Gregory Szorc 2014-04-19 21:10:22 -07:00
parent ac40d2296a
commit d8e59715bf

View File

@ -636,7 +636,7 @@ class Test(object):
raise
except Exception, e:
updateduration()
result.exception = e
return self.fail('Exception during execution: %s' % e, 255)
killdaemons(env['DAEMON_PIDS'])
@ -789,7 +789,6 @@ class TestResult(object):
self.ret = None
self.out = None
self.duration = None
self.exception = None
self.refout = None
self.skipped = False
@ -1152,9 +1151,6 @@ def runone(options, test, count):
res = TestResult()
result = t.run(res)
if res.exception:
return t.fail('Exception during execution: %s' % res.exception, 255)
ret = res.ret
out = res.out