Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix test_buffer_deployment case NoneType issue #6050

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/qos/test_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def setup_module(duthosts, rand_one_dut_hostname, request):
duthost = duthosts[rand_one_dut_hostname]
detect_buffer_model(duthost)
if not is_mellanox_device(duthost):
load_lossless_headroom_data(duthost)
yield
return

Expand Down Expand Up @@ -2435,7 +2436,7 @@ def _check_port_buffer_info_and_return(duthost, table, ids, port, expected_profi
else:
if is_mellanox_device(duthost):
buffer_items_to_check = buffer_items_to_check_dict["down"]
elif is_broadcom_device(duthost) and (asic_type in ['td2'] or speed <= '10000'):
elif is_broadcom_device(duthost) and (asic_type in ['td2', 'td3'] or speed <= '10000'):
neethajohn marked this conversation as resolved.
Show resolved Hide resolved
buffer_items_to_check = [(None, None, None)]
else:
buffer_items_to_check = [('BUFFER_PG_TABLE', '3-4', profile_wrapper.format(expected_profile))]
Expand Down