[chirp_devel] New Driver Doesn't Pass Tests
Hi Chirp-Devel,
I'm about to submit a new radio driver, but while testing I see that it crashes the Edges and BruteForce tests.
TYT TH-UV88 Detect PASSED: All tests TYT TH-UV88 Settings PASSED: All tests TYT TH-UV88 Clone PASSED: All tests TYT TH-UV88 Edges CRASHED: None is not in list TYT TH-UV88 BruteForce CRASHED: None is not in list TYT TH-UV88 CopyAll PASSED: All tests TYT TH-UV88 Banks SKIPPED: Banks not supported
Does anyone have any hints/tips on how to figure out what is causing each of these failures?
Thanks, Jim KC9HI
Hi Jim,
On 13 Nov 20, Jim Unroe via chirp_devel said:
I'm about to submit a new radio driver, but while testing I see that it crashes the Edges and BruteForce tests.
TYT TH-UV88 Edges CRASHED: None is not in list
You might take a look in chirp.hg/tests/logs/ and see what you find there. If I "assert False" in the AnyTone 778UV driver set_settings() then I see something like this:
$ python2 tests/run_tests.py -d AnyTone_778UV AnyTone 778UV Detect PASSED: All tests AnyTone 778UV Settings CRASHED: AnyTone 778UV Clone PASSED: All tests AnyTone 778UV Edges PASSED: All tests AnyTone 778UV BruteForce PASSED: All tests AnyTone 778UV CopyAll PASSED: All tests AnyTone 778UV Banks SKIPPED: Banks not supported ---------------------------------------------------------------------- Results: TOTAL : 7 FAILED : 0 SKIPPED: 1 PASSED : 5 CRASHED: 1 $ cat tests/logs/AnyTone_778UV_Settings.log ---- Begin test Settings ----
Args were: ([<chirp.settings.RadioSettingGroup object at 0x7ff84ca7a590>, <chirp.settings.RadioSettingGroup object at 0x7ff84ca6a650>],){} Traceback (most recent call last): File "tests/run_tests.py", line 147, in do ret = fn(*args, **kwargs) File "../chirp/drivers/anytone778uv.py", line 990, in set_settings assert False AssertionError
... snip ...
---- End test Settings ----
Cheers, Joe
participants (2)
-
Jim Unroe
-
Joe Milbourn