Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sof-dump-status.py: don't crash on unknown Intel audio PCI devices
Set pci_info['hw_name'] to "PCI device unknown by SOF" and keep going. Before this commit, any test that invokes sof-dump-status.py for any reason crashes like this when the PCI ID is unknown: ``` Traceback (most recent call last): File "sof-test/tools/sof-dump-status.py", line 497, in <module> sysinfo.loadPCI() File "sof-test/tools/sof-dump-status.py", line 139, in loadPCI pci_info['hw_name'] = self._pci_ids["0x" + tmp_line[4] + tmp_line[3]] KeyError: '0xe328' ``` The lack of a known PCI ID does not have to be fatal: there are plenty of use cases where the PCI ID is not needed. This commit makes it possible to run all these test cases even when the PCI ID is unknown. This could help with #288 too. Signed-off-by: Marc Herbert <[email protected]>
- Loading branch information