Commit 246edb82 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Do not hide exceptions in test wrapper

they help with debugging
parent 68f43fd3
......@@ -154,19 +154,12 @@ def main():
elif filename.endswith(".qmt"):
# Check which class should be used to instantiate QMTests
# by default it is QMTTest but this can be overwritten via the environment
test_module = os.environ.get(
'GAUDI_QMTEST_MODULE', 'GaudiTesting.QMTTest')
test_class = os.environ.get('GAUDI_QMTEST_CLASS', 'QMTTest')
exec 'from {} import {} as test_class'.format(
test_module, test_class)
fileToTest = test_class(filename)
results =
except Exception, e:
'Exception caught when trying to instantiate qmt test python object')
return 1
test_module = os.environ.get('GAUDI_QMTEST_MODULE',
test_class = os.environ.get('GAUDI_QMTEST_CLASS', 'QMTTest')
exec 'from {} import {} as test_class'.format(test_module, test_class)
fileToTest = test_class(filename)
results =
report = globals()[ + '_report']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment