]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: Add `pytest.mark.bfd`
authorDonald Sharp <sharpd@nvidia.com>
Fri, 15 Jan 2021 13:58:24 +0000 (08:58 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 15 Jan 2021 13:58:24 +0000 (08:58 -0500)
Add a mark to topotests that mark bfd tests.

`pytest -k bfd`

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/bfd-bgp-cbit-topo3/test_bfd_bgp_cbit_topo3.py
tests/topotests/bfd-isis-topo1/test_bfd_isis_topo1.py
tests/topotests/bfd-profiles-topo1/test_bfd_profiles_topo1.py
tests/topotests/bfd-topo1/test_bfd_topo1.py
tests/topotests/bfd-topo2/test_bfd_topo2.py
tests/topotests/bfd-vrf-topo1/test_bfd_vrf_topo1.py
tests/topotests/pytest.ini

index 98a5033f537d101304910e81480deb58d2f30f98..cc1c1e3a0cd6dd853984efd54219880bdbd2ff00 100644 (file)
@@ -64,7 +64,7 @@ class BFDTopo(Topo):
         switch.add_link(tgen.gears["r2"])
         switch.add_link(tgen.gears["r3"])
 
-
+@pytest.mark.bfd
 def setup_module(mod):
     "Sets up the pytest environment"
     tgen = Topogen(BFDTopo, mod.__name__)
index 1adfec76d84d4ee08c66b30e8d5686cb89c12db7..92c1b1f147c8cb8ce922732469729137b0b5edba 100644 (file)
@@ -127,7 +127,7 @@ class TemplateTopo(Topo):
         switch.add_link(tgen.gears["rt4"], nodeif="eth-rt5")
         switch.add_link(tgen.gears["rt5"], nodeif="eth-rt4")
 
-
+@pytest.mark.bfd
 def setup_module(mod):
     "Sets up the pytest environment"
     tgen = Topogen(TemplateTopo, mod.__name__)
index bd3b876eeb117c9fbc9f9a0135ea2ca7be48da1c..97c9c9344028bd1fd7a43c1e3c8df11bae3ddc32 100644 (file)
@@ -77,7 +77,7 @@ class BFDProfTopo(Topo):
         switch.add_link(tgen.gears["r1"])
         switch.add_link(tgen.gears["r6"])
 
-
+@pytest.mark.bfd
 def setup_module(mod):
     "Sets up the pytest environment"
     tgen = Topogen(BFDProfTopo, mod.__name__)
index 6e589d55eb0bea193a62b450c6aa4c6156a2daba..4c13fdcfc5fa7d1eb82bed344765f4104542ee55 100644 (file)
@@ -69,7 +69,7 @@ class BFDTopo(Topo):
         switch.add_link(tgen.gears["r2"])
         switch.add_link(tgen.gears["r4"])
 
-
+@pytest.mark.bfd
 def setup_module(mod):
     "Sets up the pytest environment"
     tgen = Topogen(BFDTopo, mod.__name__)
index feb4576bd305a888c00baa04fd6ab31520bf322f..5181a40f477754ceb196b67530bac857316808dd 100644 (file)
@@ -70,7 +70,7 @@ class BFDTopo(Topo):
         switch.add_link(tgen.gears["r2"])
         switch.add_link(tgen.gears["r4"])
 
-
+@pytest.mark.bfd
 def setup_module(mod):
     "Sets up the pytest environment"
     tgen = Topogen(BFDTopo, mod.__name__)
index 5fed135f8d3bfb7da38fd36ddbc7749d1a562ffa..956b52658309f61501339ba77657b1818305fb75 100644 (file)
@@ -70,7 +70,7 @@ class BFDTopo(Topo):
         switch.add_link(tgen.gears["r2"])
         switch.add_link(tgen.gears["r4"])
 
-
+@pytest.mark.bfd
 def setup_module(mod):
     "Sets up the pytest environment"
     tgen = Topogen(BFDTopo, mod.__name__)
index fcbf853faca32e210abe388671ab01dca9a6f478..c57181c544d8b46f071da902d5c689646e77d4fd 100644 (file)
@@ -3,6 +3,7 @@
 norecursedirs = .git example-test example-topojson-test lib docker
 markers =
        babel: Tests that run against BABEL
+       bfd: Tests that run against BFDD
        eigrp: Tests that run against EIGRPD
        ldp: Tests that run against LDPD
        ospf: Tests that run against OSPF( v2 and v3 )