Skip to content

Commit

Permalink
fix test_tunnel_decap_dscp_to_pg_mapping failure caused by unknonw as…
Browse files Browse the repository at this point in the history
…ic name (sonic-net#8862)
  • Loading branch information
XuChen-MSFT authored and AharonMalkin committed Jan 25, 2024
1 parent 5385c28 commit f8ed86b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/devices/sonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ def get_asic_name(self):
if ("Broadcom Limited Device b960" in output or
"Broadcom Limited Broadcom BCM56960" in output):
asic = "th"
elif "Broadcom Limited Device b971" in output:
elif "Device b971" in output:
asic = "th2"
elif ("Broadcom Limited Device b850" in output or
"Broadcom Limited Broadcom BCM56850" in output):
Expand Down
1 change: 1 addition & 0 deletions tests/qos/test_tunnel_qos_remap.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ def test_tunnel_decap_dscp_to_pg_mapping(rand_selected_dut, ptfhost, dut_config,
"""
toggle_mux_to_host(rand_selected_dut)
asic = rand_selected_dut.get_asic_name()
pytest_assert(asic != 'unknown', 'Get unknown asic name')
# TODO: Get the cell size for other ASIC
if asic == 'th2':
cell_size = 208
Expand Down

0 comments on commit f8ed86b

Please sign in to comment.