]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: bgp_evpn_rt5 don't check for file presence
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 23 Apr 2025 10:51:30 +0000 (12:51 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Thu, 24 Apr 2025 08:35:22 +0000 (10:35 +0200)
They are always there.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
tests/topotests/bgp_evpn_rt5/test_bgp_evpn.py

index 3807456298c8b90d56492920bd88521bd15101a2..1ba66c50a56bf47274faafa877843117f5169987 100644 (file)
@@ -166,9 +166,6 @@ def test_protocols_convergence():
     for rname in ("r1", "r2"):
         router = tgen.gears[rname]
         json_file = "{}/{}/bgp_l2vpn_evpn_routes.json".format(CWD, router.name)
-        if not os.path.isfile(json_file):
-            assert 0, "bgp_l2vpn_evpn_routes.json file not found"
-
         expected = json.loads(open(json_file).read())
         test_func = partial(
             topotest.router_json_cmp,
@@ -242,9 +239,6 @@ def test_bgp_vrf_routes():
             json_file = "{}/{}/bgp_vrf_{}_routes_detail.json".format(
                 CWD, router.name, af
             )
-            if not os.path.isfile(json_file):
-                assert 0, "bgp vrf routes file not found"
-
             expected = json.loads(open(json_file).read())
             test_func = partial(
                 topotest.router_json_cmp,
@@ -406,9 +400,6 @@ def test_evpn_disable_routemap():
     )
     router = tgen.gears["r1"]
     json_file = "{}/{}/bgp_l2vpn_evpn_routes_all.json".format(CWD, router.name)
-    if not os.path.isfile(json_file):
-        assert 0, "bgp_l2vpn_evpn_routes.json file not found"
-
     expected = json.loads(open(json_file).read())
     test_func = partial(
         topotest.router_json_cmp,