Skip to content

Commit

Permalink
remove pktRxErrNoBroadcast counters from test_arp_1_client results
Browse files Browse the repository at this point in the history
Signed-off-by: syaakov <[email protected]>
  • Loading branch information
syaakov committed Apr 12, 2022
1 parent 6448261 commit ac2e3af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/automation/regression/emu_tests/emu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def test_arp_1_client(self):
print(" -- Router ARP entry cleared successfully.")
print(" -- Loading profile...")
self.emu_client.load_profile(profile)
time.sleep(1) #wait for resolve

dual_if = self.router.if_mngr.get_dual_if_list()[port] # same port as we used to create the profile.
resolved_mac = Emu_Test.convert_mac_unix_format(dual_if.client_if.get_src_mac_addr())
Expand Down Expand Up @@ -143,7 +144,6 @@ def test_arp_1_client(self):
'pktRxArpQuery': 0,
'pktRxArpQueryNotForUs': 0,
'pktRxArpReply': 1,
'pktRxErrNoBroadcast': 0,
'pktRxErrTooShort': 0,
'pktRxErrWrongOp': 0,
'pktTxArpQuery': 1,
Expand All @@ -158,6 +158,8 @@ def test_arp_1_client(self):
'timerEventRefresh': 0}
}
res = self.emu_client.arp.get_counters(ns_key, zero = True, verbose = False)
if 'arp' in res:
res['arp'].pop('pktRxErrNoBroadcast', None)
assert expected == res, "ARP counters differ from expected!"
print(" -- ARP counters verified correctly.")

Expand Down

0 comments on commit ac2e3af

Please sign in to comment.