mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
run-tests: emit exception failure result from Test.run()
This commit is contained in:
parent
ac40d2296a
commit
d8e59715bf
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user