Skip to content

Commit 6b4b6ef

Browse files
daalllguohan
authored andcommitted
[vs tests] Mark VLAN and warm reboot tests as xfail (sonic-net#1183)
Signed-off-by: Danny Allen <[email protected]>
1 parent da89cf2 commit 6b4b6ef

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/test_vlan.py

+8
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ def test_AddVlanWithIncorrectValueType(self, dvs, testlog, test_input, expected)
424424
#remove vlan
425425
dvs.remove_vlan(vlan)
426426

427+
# FIXME: This test is extremely unstable and requires several retries
428+
# for it to pass - we need to stabilize this test before putting it back
429+
# into the pipeline.
430+
@pytest.mark.xfail(reason="test case is unstable")
427431
def test_AddPortChannelToVlan(self, dvs, testlog):
428432
self.setup_db(dvs)
429433
marker = dvs.add_log_marker()
@@ -644,6 +648,10 @@ def test_AddMaxVlan(self, dvs, testlog):
644648
vlan_entries = [k for k in tbl.getKeys() if k != dvs.asicdb.default_vlan_id]
645649
assert len(vlan_entries) == 0
646650

651+
# FIXME: This test is extremely unstable and requires several retries
652+
# for it to pass - we need to stabilize this test before putting it back
653+
# into the pipeline.
654+
@pytest.mark.xfail(reason="test case is unstable")
647655
def test_RemoveVlanWithRouterInterface(self, dvs, testlog):
648656
dvs.setup_db()
649657
marker = dvs.add_log_marker()

tests/test_warm_reboot.py

+5
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ def ping_new_ips(dvs):
234234
dvs.runcmd(['sh', '-c', "ping -c 1 -W 0 -q {}.0.0.{} > /dev/null 2>&1".format(i*4,j+NUM_NEIGH_PER_INTF+2)])
235235
dvs.runcmd(['sh', '-c', "ping6 -c 1 -W 0 -q {}00::{} > /dev/null 2>&1".format(i*4,j+NUM_NEIGH_PER_INTF+2)])
236236

237+
237238
class TestWarmReboot(object):
238239
def test_PortSyncdWarmRestart(self, dvs, testlog):
239240

@@ -1794,6 +1795,10 @@ def test_routing_WarmRestart(self, dvs, testlog):
17941795
intf_tbl._del("{}".format(intfs[2]))
17951796
time.sleep(2)
17961797

1798+
# FIXME: This test is extremely unstable and requires several retries
1799+
# for it to pass - we need to stabilize this test before putting it back
1800+
# into the pipeline.
1801+
@pytest.mark.xfail(reason="test case is unstable")
17971802
def test_system_warmreboot_neighbor_syncup(self, dvs, testlog):
17981803

17991804
appl_db = swsscommon.DBConnector(swsscommon.APPL_DB, dvs.redis_sock, 0)

0 commit comments

Comments
 (0)