preserve the original stack strace
This commit is contained in:
parent
514498d6be
commit
20a58b6e02
@ -77,7 +77,7 @@ def usedb(supported=None, not_supported=None):
|
|||||||
@decorator
|
@decorator
|
||||||
def dec(f, self, *a, **kw):
|
def dec(f, self, *a, **kw):
|
||||||
failed_for = []
|
failed_for = []
|
||||||
exception = None
|
fail = False
|
||||||
for url in my_urls:
|
for url in my_urls:
|
||||||
try:
|
try:
|
||||||
log.debug("Running test with engine %s", url)
|
log.debug("Running test with engine %s", url)
|
||||||
@ -104,12 +104,12 @@ def usedb(supported=None, not_supported=None):
|
|||||||
)%(setup_exception,teardown_exception))
|
)%(setup_exception,teardown_exception))
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
failed_for.append(url)
|
failed_for.append(url)
|
||||||
exception = exception or e
|
fail = True
|
||||||
for url in failed_for:
|
for url in failed_for:
|
||||||
log.error('Failed for %s', url)
|
log.error('Failed for %s', url)
|
||||||
if exception:
|
if fail:
|
||||||
# cause the failure :-)
|
# cause the failure :-)
|
||||||
raise exception
|
raise
|
||||||
return dec
|
return dec
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user