Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xwjiang-ms committed Dec 31, 2024
1 parent 09a507e commit 49a8bec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,6 @@ qos/test_buffer_traditional.py:
conditions:
- "release not in ['201911']"
- "topo_type in ['m0', 'mx']"
- "asic_type in ['vs']"

qos/test_ecn_config.py:
skip:
Expand Down
2 changes: 2 additions & 0 deletions tests/common/system_utils/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ def _get_vendor_id(duthost):
vendor_id = "cisco"
elif is_marvell_teralynx_device(duthost):
vendor_id = "invm"
elif duthost.facts["asic_type"] == "vs":
vendor_id = "vs"
else:
error_message = '"{}" does not currently support swap_syncd'.format(duthost.facts["asic_type"])
logger.error(error_message)
Expand Down
8 changes: 4 additions & 4 deletions tests/qos/test_pfc_counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ def run_test(fanouthosts, duthost, conn_graph_facts, fanout_graph_facts, leaf_fa
logger.info("Verifying PFC RX count matches {}".format(expected_prios))
if counter_facts[intf]['Rx'] != expected_prios:
failures.append((counter_facts[intf]['Rx'], expected_prios))
for failure in failures:
logger.error("Got {}, expected {}".format(*failure))
assert len(failures) == 0 if asic_type != 'vs' else True, \
"PFC RX counter increment not matching expected for above logged cases."
if asic_type != 'vs':
for failure in failures:
logger.error("Got {}, expected {}".format(*failure))
assert len(failures) == 0, "PFC RX counter increment not matching expected for above logged cases."

else:
for intf in active_phy_intfs:
Expand Down

0 comments on commit 49a8bec

Please sign in to comment.