]> git.proxmox.com Git - mirror_frr.git/commitdiff
tests: Fix to use global variable for pim marking
authorDonald Sharp <sharpd@nvidia.com>
Thu, 21 Jan 2021 15:30:57 +0000 (10:30 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 22 Jan 2021 20:54:31 +0000 (15:54 -0500)
Use the preferred methodology of marking
for pim tests and update new pim tests with
appropriate mark

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/bgp-evpn-mh/test_evpn_mh.py
tests/topotests/evpn-pim-1/test_evpn_pim_topo1.py
tests/topotests/multicast-pim-sm-topo3/test_multicast_pim_sm_topo3.py
tests/topotests/multicast-pim-sm-topo3/test_multicast_pim_sm_topo4.py
tests/topotests/pim-basic/test_pim.py

index 4e37ab00a3e4ddfc9fbc56f15f28ad4660a0c924..61be947a717ed81b4250e693a8da4146fc1459d4 100644 (file)
@@ -35,6 +35,8 @@ import json
 import platform
 from functools import partial
 
+pytestmark = pytest.mark.pimd
+
 # Save the Current Working Directory to find configuration files.
 CWD = os.path.dirname(os.path.realpath(__file__))
 sys.path.append(os.path.join(CWD, "../"))
@@ -362,7 +364,7 @@ def config_hosts(tgen, hosts):
         host = tgen.gears[host_name]
         config_host(host_name, host)
 
-@pytest.mark.pim
+
 def setup_module(module):
     "Setup topology"
     tgen = Topogen(NetworkTopo, module.__name__)
index 07623af063c5e808016095d08bbaf11044c3b001..d8c0cdc2fd1615ebc97325977ba0565e0c44bb1c 100644 (file)
@@ -34,6 +34,8 @@ import pytest
 import json
 from functools import partial
 
+pytestmark = pytest.mark.pimd
+
 # Save the Current Working Directory to find configuration files.
 CWD = os.path.dirname(os.path.realpath(__file__))
 sys.path.append(os.path.join(CWD, "../"))
@@ -97,7 +99,7 @@ class NetworkTopo(Topo):
 ##
 #####################################################
 
-@pytest.mark.pim
+
 def setup_module(module):
     "Setup topology"
     tgen = Topogen(NetworkTopo, module.__name__)
index d31d7ace92c6d76a6045a00f506c77493b1e9186..fdceb77fd1628c6127493f27fbe201706d3d9713 100755 (executable)
@@ -56,6 +56,8 @@ import time
 import datetime
 import pytest
 
+pytestmark = pytest.mark.pimd
+
 # Save the Current Working Directory to find configuration files.
 CWD = os.path.dirname(os.path.realpath(__file__))
 sys.path.append(os.path.join(CWD, "../"))
index 33c57f209af86f3c2c83cc2c3830bfbb27017f31..e8579e2a1e03f5dd3a42825a3e14fbf232a22e16 100755 (executable)
@@ -49,6 +49,8 @@ import datetime
 from time import sleep
 import pytest
 
+pytestmark = pytest.mark.pimd
+
 # Save the Current Working Directory to find configuration files.
 CWD = os.path.dirname(os.path.realpath(__file__))
 sys.path.append(os.path.join(CWD, "../"))
index 74a7fbf16e113791b3b8765bb5125f1164453df9..224b82f1fb0242808d83caf4a32eae1832c62ad7 100644 (file)
@@ -31,6 +31,8 @@ import pytest
 import json
 from functools import partial
 
+pytestmark = pytest.mark.pimd
+
 CWD = os.path.dirname(os.path.realpath(__file__))
 sys.path.append(os.path.join(CWD, "../"))
 
@@ -80,7 +82,7 @@ class PIMTopo(Topo):
         sw.add_link(tgen.gears["r1"])
         sw.add_link(tgen.gears["r3"])
 
-@pytest.mark.pim
+
 def setup_module(mod):
     "Sets up the pytest environment"
     tgen = Topogen(PIMTopo, mod.__name__)