kuznia-rdzeni / coreblocks

RISC-V out-of-order core for education and research purposes
https://kuznia-rdzeni.github.io/coreblocks/
BSD 3-Clause "New" or "Revised" License
37 stars 16 forks source link

Fix logging handler connection #645

Closed lekcyjna123 closed 7 months ago

lekcyjna123 commented 7 months ago

In #642 I have found that capturing logs with pytest doesn't work, it was because of bug in our code, where we substitute all log handlers with our handler instead of appending it. Here is a small fix for that.

xThaid commented 7 months ago

Output is now doubled. For example run:

pytest --log-level=DEBUG --coreblocks-regression --coreblocks-backend pysim -s -v -k "rv32uc-rvc"