xmos / sw_usb_audio

XMOS USB Audio reference design
Other
32 stars 16 forks source link

Fix Python error in test analyzer output parsing #211

Closed danielpieczko closed 6 months ago

danielpieczko commented 6 months ago

Have seen a Python exception in the nightly run: TypeError: sequence item 4: expected str instance, list found

Based on where the exception is raised, the list returned from the failures variable in check_analyzer_output contains a list, rather than just strings as was intended. The analyzer_channels[idx] is a list of lines of output related to a single audio channel, so these should be appended as individual lines rather than a single list object.

I can't see how any of the other items appended to the failures list can be lists instead of strings, so I think this is the root cause of this exception.