Skip to content

Commit

Permalink
Always update testParams
Browse files Browse the repository at this point in the history
  • Loading branch information
bingwang-ms committed Nov 7, 2022
1 parent d24fcd1 commit 72fc936
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/qos/test_qos_sai.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,16 +880,13 @@ def testQosSaiDwrr(
"q4_num_of_pkts": qosConfig["wrr"]["q4_num_of_pkts"],
"q5_num_of_pkts": qosConfig["wrr"]["q5_num_of_pkts"],
"q6_num_of_pkts": qosConfig["wrr"]["q6_num_of_pkts"],
"q7_num_of_pkts": qosConfig["wrr"].get("q7_num_of_pkts", 0),
"limit": qosConfig["wrr"]["limit"],
"pkts_num_leak_out": qosConfig[portSpeedCableLength]["pkts_num_leak_out"],
"hwsku":dutTestParams['hwsku'],
"topo": dutTestParams["topo"]
"topo": dutTestParams["topo"],
"qos_remap_enable": qos_remap_enable
})
if qos_remap_enable:
testParams.update({
"qos_remap_enable": qos_remap_enable,
"q7_num_of_pkts": qosConfig["wrr"].get("q7_num_of_pkts", 0)
})

if "lossy_queue_1" in dutQosConfig["param"][portSpeedCableLength].keys():
testParams["ecn"] = qosConfig[portSpeedCableLength]["lossy_queue_1"]["ecn"]
Expand Down

0 comments on commit 72fc936

Please sign in to comment.