discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Python Unit Tests Running Twice


From: Dave NotTelling
Subject: [Discuss-gnuradio] Python Unit Tests Running Twice
Date: Wed, 15 Jun 2016 18:44:11 -0400

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 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]