I noticed that my Python unit tests were running twice.  Using PyCharm's
debugger I was able to figure out that the culprit is the following snippet
from gr_unittest.py:

# use the xmlrunner if we can write the the directory
if(xmlrunner is not None):
    xmlrunner.run(suite)

main()


xmlrunner.run(suite) runs my tests, when that finishes (failure or not)
main() gets called which runs the tests again.  This plays hell with my
tests that talk to radio hardware as the radio hardware is never released.
Should there be an 'else' clause that calls main()?

Thanks!

-Dave
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to