Skip to content

Commit

Permalink
[test]: Mark some VLAN tests as Stretch only (sonic-net#903)
Browse files Browse the repository at this point in the history
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
  • Loading branch information
Shuotian Cheng authored Jun 3, 2019
1 parent 0af226a commit 4194e2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def test_MultipleVlan(self, dvs, testlog):
vlan_entries = [k for k in tbl.getKeys() if k != dvs.asicdb.default_vlan_id]
assert len(vlan_entries) == 0

@pytest.mark.skipif(StrictVersion(platform.linux_distribution()[1]) <= StrictVersion('8.9'), reason="Debian 8.9 or before has no support")
@pytest.mark.parametrize("test_input, expected", [
(["Vla", "2"], 0),
(["VLAN", "3"], 0),
Expand Down Expand Up @@ -221,6 +222,7 @@ def test_AddVlanWithIncorrectKeyPrefix(self, dvs, testlog, test_input, expected)
#remove vlan
self.remove_vlan(vlan)

@pytest.mark.skipif(StrictVersion(platform.linux_distribution()[1]) <= StrictVersion('8.9'), reason="Debian 8.9 or before has no support")
@pytest.mark.parametrize("test_input, expected", [
(["Vlan", "abc"], 0),
(["Vlan", "a3"], 0),
Expand Down

0 comments on commit 4194e2e

Please sign in to comment.