concurrencytest
concurrencytest copied to clipboard
Error in setUpClass() does not cause error in summary
Hello if an exception is raised in setUpClass method the exeption is print on stdout (not stderr as I would expect). No other notification about failure is then logged after end of tests.
Example of error:
error: setUpClass (hwtLib.amba.interconnect.matrixAddrCrossbar_test.AxiInterconnectMatrixAddrCrossbar_1to1TC) [
Traceback (most recent call last):
File "/home/nic30/Documents/workspace/hwt/hwt/simulator/simTestCase.py", line 265, in setUpClass
cls.compileSim(u)
File "/home/nic30/Documents/workspace/hwtLib/hwtLib/amba/interconnect/matrixAddrCrossbar.py", line 88, in propagate_addr
if si not in slvs:
TypeError: argument of type 'int' is not iterable
]
Example of report:
hwtLib.examples.builders.pingResponder_test.PingResponderTC.test_reply1x ... ok
----------------------------------------------------------------------
Ran 722 tests in 19.977s
OK
Expected report:
======================================================================
ERROR: setUpClass (hwtLib.amba.interconnect.matrixAddrCrossbar_test.AxiInterconnectMatrixAddrCrossbar_1to1TC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/hwt-3.0-py3.6.egg/hwt/simulator/simTestCase.py", line 265, in setUpClass
cls.compileSim(u)
File "/home/travis/build/Nic30/hwtLib/hwtLib/amba/interconnect/matrixAddrCrossbar.py", line 88, in propagate_addr
if si not in slvs:
TypeError: argument of type 'int' is not iterable
----------------------------------------------------------------------
Ran 722 tests in 202.726s
FAILED (errors=1)