You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test case sub_port_interfaces.test_sub_port_interfaces.TestSubPorts#test_balancing_sub_ports has two fixture parameters: ['port', 'port_in_lag']
test_balancing_sub_ports[port]
test_balancing_sub_ports[port_in_lag]
Issue
Case test_balancing_sub_ports[port] always pass
Case test_balancing_sub_ports[port_in_lag] sometimes fail because Failed: Expected packet not available.
In the test case, the src_port is selected randomly. If the src_port selects eth0 or eth1, the case will fail. The eth0 and eth1 are the ptf tested ports, which should not be selected as src_port
The src_ports list is generated by function apply_balancing_config, which is defined in tests/sub_port_interfaces/conftest.py.
In the current code, there already has a logic to remove ptf port from the src_ports list
After src_ports = tuple(all_up_ports.difference(ptf_ports)), the eth0 and eth1 still exist in src_ports list. When the src_port is randomly selected eth0 or eth1, the case will fail
Issue Description
Background
Test case
sub_port_interfaces.test_sub_port_interfaces.TestSubPorts#test_balancing_sub_ports
has two fixture parameters:['port', 'port_in_lag']
Issue
test_balancing_sub_ports[port]
always passtest_balancing_sub_ports[port_in_lag]
sometimes fail becauseFailed: Expected packet not available
.In the test case, the
src_port
is selected randomly. If thesrc_port
selectseth0
oreth1
, the case will fail. Theeth0
andeth1
are the ptf tested ports, which should not be selected assrc_port
Root cause
The
src_ports
list is generated by functionapply_balancing_config
, which is defined intests/sub_port_interfaces/conftest.py
.In the current code, there already has a logic to remove ptf port from the
src_ports
listResults you see
See the
Description
sectionResults you expected to see
Remove
eth0
andeth1
from thesrc_ports
list for case test_balancing_sub_ports[port_in_lag]Is it platform specific
generic
Relevant log output
Output of
show version
Attach files (if any)
No response
The text was updated successfully, but these errors were encountered: