diff options
author | RajaaAbdallah <rajaa.abdallah@exalt.ps> | 2022-05-26 09:04:49 +0300 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-27 17:05:31 +0000 |
commit | 4d4fade509da259906ba42c5837192dc41b515ee (patch) | |
tree | bd7e01ee22ed9faf2a6263ac1381d20cdefb2912 | |
parent | a07d539c263dccff47d2b1df7d9947441f98a0bf (diff) | |
download | autotest-4d4fade509da259906ba42c5837192dc41b515ee.tar.gz |
bluetooth: Fix wrong chipset names and improve error message
BUG=b:233304026
TEST=test_that -b<board name> <dut ip> bluetooth_AVLHCI
Change-Id: I31103c845f7b27c33aba1bd8c4c0cb8a2b7981cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/3669415
Reviewed-by: Hsin-chen Chuang <chharry@google.com>
Reviewed-by: Shuo-Peng Liao <deanliao@chromium.org>
Tested-by: Rajaa Abdallah <rajaa.abdallah@exalt.ps>
Commit-Queue: Rajaa Abdallah <rajaa.abdallah@exalt.ps>
-rw-r--r-- | client/common_lib/cros/bluetooth/chipinfo.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/common_lib/cros/bluetooth/chipinfo.py b/client/common_lib/cros/bluetooth/chipinfo.py index 38c8e59533..b9e111903b 100644 --- a/client/common_lib/cros/bluetooth/chipinfo.py +++ b/client/common_lib/cros/bluetooth/chipinfo.py @@ -15,12 +15,11 @@ class ChipInfo(NamedTuple): _chip_info = { - 'MVL_8897': ChipInfo(False, False, 0), - 'MVL_8997': ChipInfo(False, False, 0), + 'MVL-8897': ChipInfo(False, False, 0), + 'MVL-8997': ChipInfo(False, False, 0), 'QCA-6174A-5-USB': ChipInfo(False, False, 0), 'QCA-6174A-3-UART': ChipInfo(False, False, 0), 'QCA-WCN6856': ChipInfo(True, True, 0x0170), - 'QCA_WCN3990': ChipInfo(True, True, 0x0170), 'WCN3991': ChipInfo(True, True, 0x0170), 'WCN6750': ChipInfo(True, True, 0x0170), 'Intel-AX200': ChipInfo(False, True, 0x001e), @@ -47,6 +46,6 @@ def query(chip_name): chip_info = _chip_info.get(chip_name) if chip_info is None: - raise error.TestError('Chipset name does not exist, please update the ' - 'list of chipsets') + raise error.TestError('Chipset name %r does not exist, please update ' + 'the list of chipsets' % chip_name) return chip_info
\ No newline at end of file |