Re: [myhdl-list] multiple tracing per run
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2016-01-26 13:00:30
|
On 1/25/2016 1:14 PM, Marcel Hellwig wrote: > Hello everyone, > > I use python unittest for testing things and sometimes I want to have a > closer look, why something fails and create a vcd dump. > The problem is, when I want to dump multiple test-cases, this won't > work, because of > I don't use unittest, I have been using pytest I don't know what might be going on. Others have used unittest and it is used in some of the "core" tests in the myhdl test suite. > > Is there a change to do a clean shutdown of the old trace-run and start > a new one (e.g. putting that code in setup and teardown method of the > testcase) > This seems odd, when the simulation ends it should clean up, I imagine it is no different that the pytest case that run multiple simulations with tracing. As an example I added a second test to the gist used in the other thread, if run with pytest (`>> py.test constant_type.py`) the test runs and creates two VCD files. https://gist.github.com/cfelton/50cb0fbed5f188fcc1bb If you have a sandbox example that fails with unittest we can create an issue for it. Regards, Chris |