Skip to content

Commit 167db4b

Browse files
authored
fix fdb test on sonic kvm image (#1227)
Do not check total mac as there could be more macs from neighbors Result unstable tests Signed-off-by: Guohan Lu <[email protected]>
1 parent 9b8096a commit 167db4b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/fdb/test_fdb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ def test_fdb(ansible_adhoc, testbed, ptfadapter):
152152
if "dynamic" in l.lower():
153153
total_mac_count += 1
154154

155+
print res
155156
# Verify that the number of dummy MAC entries is expected
156157
assert dummy_mac_count == DUMMY_MAC_COUNT * vlan_member_count
157-
# Verify that total number of MAC entries is expected
158-
assert total_mac_count == DUMMY_MAC_COUNT * vlan_member_count + vlan_member_count
159-

tests/ptf_fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ def ptfadapter(ptfhost, testbed):
4949
ifaces_map = {int(ifname.replace(ETH_PFX, '')): ifname for ifname in ifaces}
5050

5151
# generate supervisor configuration for ptf_nn_agent
52-
ptfhost.host.options['variable_manager'].extra_vars = {
52+
ptfhost.host.options['variable_manager'].extra_vars.update({
5353
'device_num': DEFAULT_DEVICE_NUM,
5454
'ptf_nn_port': DEFAULT_PTF_NN_PORT,
5555
'ifaces_map': ifaces_map,
56-
}
56+
})
5757
ptfhost.template(src='ptfadapter/templates/ptf_nn_agent.conf.ptf.j2',
5858
dest='/etc/supervisor/conf.d/ptf_nn_agent.conf')
5959

0 commit comments

Comments
 (0)