Skip to content

Commit

Permalink
ignored route syncd error logs for VxLAN tests which toggle DUT inter…
Browse files Browse the repository at this point in the history
…faces (sonic-net#6202)
  • Loading branch information
antonptashnik authored and Azarack committed Oct 17, 2022
1 parent 3799052 commit 5c523e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/vxlan/test_vxlan_ecmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,14 @@ def dump_self_info_and_run_ptf(self, tcname, encap_type, expect_encap_success, p
qlen=1000,
log_file="/tmp/vxlan-tests.{}.{}.{}.log".format(tcname, encap_type, datetime.now().strftime('%Y-%m-%d-%H:%M:%S')))


@pytest.fixture
def ignore_route_sync_errlogs(rand_one_dut_hostname, loganalyzer):
"""Ignore expected failures logs during test execution."""
if loganalyzer:
loganalyzer[rand_one_dut_hostname].ignore_regex.extend([".*Unaccounted_ROUTE_ENTRY_TABLE_entries.*"])
return

class Test_VxLAN_route_tests(Test_VxLAN):
def test_vxlan_single_endpoint(self, setUp, encap_type):
'''
Expand Down Expand Up @@ -1084,6 +1092,7 @@ def test_vxlan_random_hash(self, setUp, encap_type):
apply_config_in_swss(self.setup['duthost'], tc11_config, "vnet_route_tc11_"+encap_type)
self.dump_self_info_and_run_ptf("tc11", encap_type, True, packet_count=1000)

@pytest.mark.usefixtures("ignore_route_sync_errlogs")
class Test_VxLAN_underlay_ecmp(Test_VxLAN):
@pytest.mark.parametrize("ecmp_path_count", [1, 2])
def test_vxlan_modify_underlay_default(self, setUp, minigraph_facts, encap_type, ecmp_path_count):
Expand Down

0 comments on commit 5c523e8

Please sign in to comment.