summaryrefslogtreecommitdiffstats
path: root/tests/topotests/zebra_rib/test_zebra_rib.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/zebra_rib/test_zebra_rib.py')
-rw-r--r--tests/topotests/zebra_rib/test_zebra_rib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/topotests/zebra_rib/test_zebra_rib.py b/tests/topotests/zebra_rib/test_zebra_rib.py
index 05036fa7..c0a79ed7 100644
--- a/tests/topotests/zebra_rib/test_zebra_rib.py
+++ b/tests/topotests/zebra_rib/test_zebra_rib.py
@@ -71,7 +71,7 @@ def setup_module(mod):
tgen.start_router()
-def teardown_module(mod):
+def teardown_module():
"Teardown the pytest environment"
tgen = get_topogen()
tgen.stop_topology()
@@ -153,7 +153,7 @@ def test_zebra_kernel_admin_distance():
# metric. That needs to be properly resolved. Making a note for
# coming back around later and fixing this.
# tgen.mininet_cli()
- for i in range(1, 2):
+ for i in range(1, 3):
json_file = "{}/r1/v4_route_{}.json".format(CWD, i)
expected = json.loads(open(json_file).read())
@@ -235,7 +235,7 @@ def test_route_map_usage():
return topotest.json_cmp(output, expected)
test_func = partial(check_initial_routes_installed, r1)
- success, result = topotest.run_and_expect(test_func, None, count=40, wait=1)
+ _, result = topotest.run_and_expect(test_func, None, count=40, wait=1)
static_rmapfile = "%s/r1/static_rmap.ref" % (thisDir)
expected = open(static_rmapfile).read().rstrip()