diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-01-21 10:30:57 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-01-22 15:54:31 -0500 |
| commit | 7ed8fcff2b780618f29a74bb660d8d033082e3de (patch) | |
| tree | ebae0e2210d14b202a4f9f6782185075fc35083c /tests/topotests/pim-basic/test_pim.py | |
| parent | 86fc0eb7d83fc87d9f8f75ffe14b431efec06bbb (diff) | |
tests: Fix to use global variable for pim marking
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>
Diffstat (limited to 'tests/topotests/pim-basic/test_pim.py')
| -rw-r--r-- | tests/topotests/pim-basic/test_pim.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/topotests/pim-basic/test_pim.py b/tests/topotests/pim-basic/test_pim.py index 74a7fbf16e..224b82f1fb 100644 --- a/tests/topotests/pim-basic/test_pim.py +++ b/tests/topotests/pim-basic/test_pim.py @@ -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__) |
