Skip to content

Commit fa2b5d9

Browse files
author
Shuotian Cheng
authored
[test]: Mark VLAN related mirror test invalid in Debian Jessie (sonic-net#608)
Signed-off-by: Shu0T1an ChenG <[email protected]>
1 parent 6d40d85 commit fa2b5d9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_mirror.py

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# This test suite covers the functionality of mirror feature in SwSS
22

3+
import platform
4+
import pytest
35
import time
6+
from distutils.version import StrictVersion
47

58
from swsscommon import swsscommon
69

@@ -97,6 +100,7 @@ def get_mirror_session_status(self, name):
97100
assert False
98101
return status
99102

103+
100104
def test_MirrorAddRemove(self, dvs):
101105
"""
102106
This test covers the basic mirror session creation and removal operations
@@ -223,6 +227,9 @@ def remove_fdb(self, vlan, mac):
223227
time.sleep(1)
224228

225229

230+
# Ignore testcase in Debian Jessie
231+
# TODO: Remove this skip if Jessie support is no longer needed
232+
@pytest.mark.skipif(StrictVersion(platform.linux_distribution()[1]) <= StrictVersion('8.9'), reason="Debian 8.9 or before has no support")
226233
def test_MirrorToVlanAddRemove(self, dvs):
227234
"""
228235
This test covers basic mirror session creation and removal operation
@@ -427,6 +434,9 @@ def test_MirrorToLagAddRemove(self, dvs):
427434
self.remove_mirror_session(session)
428435

429436

437+
# Ignore testcase in Debian Jessie
438+
# TODO: Remove this skip if Jessie support is no longer needed
439+
@pytest.mark.skipif(StrictVersion(platform.linux_distribution()[1]) <= StrictVersion('8.9'), reason="Debian 8.9 or before has no support")
430440
def test_MirrorDestMoveVlan(self, dvs):
431441
"""
432442
This test tests mirror session destination move from non-VLAN to VLAN
@@ -697,6 +707,7 @@ def remove_mirror_acl_dscp_rule(self, table, rule):
697707
tbl._del(table + "|" + rule)
698708
time.sleep(1)
699709

710+
700711
def test_AclBindMirror(self, dvs):
701712
"""
702713
This test tests ACL associated with mirror session with DSCP value

0 commit comments

Comments
 (0)