16:06:36 __init__._fixture_generator_decorator L0099 ERROR |
KeyError('x86_64-nvidia_sn5640-r0')
Traceback (most recent call last):
File "/var/src/sonic-mgmt_vms70-t0-sn5640-2/tests/common/plugins/log_section_start/__init__.py", line 95, in _fixture_generator_decorator
next(it)
File "/var/src/sonic-mgmt_vms70-t0-sn5640-2/tests/platform_tests/test_reboot.py", line 60, in teardown_module
check_interfaces_and_services(duthost, interfaces, xcvr_skip_list)
File "/var/src/sonic-mgmt_vms70-t0-sn5640-2/tests/platform_tests/test_reboot.py", line 153, in check_interfaces_and_services
check_sysfs(dut)
File "/var/src/sonic-mgmt_vms70-t0-sn5640-2/tests/platform_tests/mellanox/check_sysfs.py", line 44, in check_sysfs
platform_data = get_platform_data(dut)
File "/var/src/sonic-mgmt_vms70-t0-sn5640-2/tests/common/mellanox_data.py", line 1126, in _impl
method.return_value = method(*args, **kwargs)
File "/var/src/sonic-mgmt_vms70-t0-sn5640-2/tests/common/mellanox_data.py", line 1145, in get_platform_data
return SWITCH_MODELS[dut_platform]
KeyError: 'x86_64-nvidia_sn5640-r0'
The test should pass.
Is it platform specific
mellanox
Importance or Severity
High
Description of the enhancement
SN5640 info is missing in mellanox_data.py, which causes platform tests to fail:
https://github.com/sonic-net/sonic-mgmt/blob/master/tests/common/mellanox_data.py
Current Behavior
When running tests like reboot tests, we will see errors below:
Proposed Behavior
The test should pass.