diff options
| author | Christian Hopps <chopps@labn.net> | 2023-04-15 09:37:30 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-04-15 09:39:05 -0400 | 
| commit | c568b4ac4f2eed1d4c226f99620093e7ed401229 (patch) | |
| tree | 65e97b253ef8ffe22d0bdf6cb7e67baaec3c1be3 /tests/topotests/bgp_gr_functionality_topo1 | |
| parent | 5537b907e9bfe3a942bffde2c9654c38aeba680b (diff) | |
tests: restart bgpd to avoid warnings in follow on tests
The tests are killing bgpd and then ending, the next test is checking for all
daemons running and spewing warnings to stderr. Restart the daemons before
ending the test (like other tests in this same module) to avoid this.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/bgp_gr_functionality_topo1')
| -rw-r--r-- | tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-3.py | 9 | ||||
| -rw-r--r-- | tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-4.py | 9 | 
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-3.py b/tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-3.py index 6388295c95..f8a01a1c9d 100644 --- a/tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-3.py +++ b/tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-3.py @@ -2142,6 +2142,9 @@ def test_BGP_GR_TC_43_p1(request):              tc_name, result          ) +    # restart the daemon or we get warnings in the follow-on tests +    start_router_daemons(tgen, "r1", ["bgpd"]) +      write_test_footer(tc_name) @@ -2432,6 +2435,9 @@ def test_BGP_GR_TC_44_p1(request):          result = verify_rib(tgen, addr_type, dut, input_topo, next_hop, protocol)          assert result is True, "Testcase {} :Failed \n Error {}".format(tc_name, result) +    # restart the daemon or we get warnings in the follow-on tests +    start_router_daemons(tgen, "r2", ["bgpd"]) +      write_test_footer(tc_name) @@ -2727,6 +2733,9 @@ def test_BGP_GR_TC_45_p1(request):          result = verify_rib(tgen, addr_type, dut, input_topo, next_hop, protocol)          assert result is True, "Testcase {} :Failed \n Error {}".format(tc_name, result) +    # restart the daemon or we get warnings in the follow-on tests +    start_router_daemons(tgen, "r1", ["bgpd"]) +      write_test_footer(tc_name) diff --git a/tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-4.py b/tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-4.py index 1166cdc0ef..31aaa0b8a6 100644 --- a/tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-4.py +++ b/tests/topotests/bgp_gr_functionality_topo1/test_bgp_gr_functionality_topo1-4.py @@ -763,6 +763,9 @@ def test_BGP_GR_TC_46_p1(request):              tc_name, result          ) +    # restart the daemon or we get warnings in the follow-on tests +    start_router_daemons(tgen, "r1", ["bgpd"]) +      write_test_footer(tc_name) @@ -1023,6 +1026,9 @@ def test_BGP_GR_TC_47_p1(request):              tc_name, result          ) +    # restart the daemon or we get warnings in the follow-on tests +    start_router_daemons(tgen, "r1", ["bgpd"]) +      write_test_footer(tc_name) @@ -1300,6 +1306,9 @@ def test_BGP_GR_TC_48_p1(request):              tc_name, result          ) +    # restart the daemon or we get warnings in the follow-on tests +    start_router_daemons(tgen, "r1", ["bgpd"]) +      write_test_footer(tc_name)  | 
