Re: multiple tracing per run

Christopher Felton <[email protected]> Tue, 26 Jan 2016 06:59:45 -0600
Newsgroups gmane.comp.python.myhdl
Message-ID <[email protected]>
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


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140