]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: fix zebra_rib range 16904/head
authorLouis Scalbert <louis.scalbert@6wind.com>
Mon, 23 Sep 2024 15:57:48 +0000 (17:57 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Tue, 24 Sep 2024 08:15:49 +0000 (10:15 +0200)
Range is wrong. We want values 1 and 2 but we only test 1.

> >>> for i in range(1, 2):
> ...     print(i)
> ...
> 1

Fixes: abd2a1ff3f ("tests: Test some basic kernel <-> zebra interactions")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
tests/topotests/zebra_rib/test_zebra_rib.py

index 93296cd51aa69f8bddd591caade0a37a75388cae..c0a79ed79d8c484cf2c4d19d761381dbf6760b46 100644 (file)
@@ -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())