concurrencytest icon indicating copy to clipboard operation
concurrencytest copied to clipboard

Error in setUpClass() does not cause error in summary

Open Nic30 opened this issue 4 years ago • 0 comments

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)

Nic30 avatar Jan 14 '20 17:01 Nic30