Skip to content

Commit

Permalink
tests: The bgp_flowspec frequently fails try to gather more data
Browse files Browse the repository at this point in the history
Add a bit of code to allow the bgp_flowspec topotest to gather
data when something goes wrong.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Jun 6, 2023
1 parent fecc953 commit 7c5f5d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/topotests/bgp_flowspec/test_bgp_flowspec_topo.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
from lib import topotest
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger
from lib.common_config import generate_support_bundle

# Required to instantiate the topology builder class.

Expand Down Expand Up @@ -139,7 +140,9 @@ def test_bgp_convergence():
)
_, res = topotest.run_and_expect(test_func, None, count=90, wait=0.5)
assertmsg = "BGP router network did not converge"
assert res is None, assertmsg
if res is not None:
generate_support_bundle()
assert res is None, assertmsg


def test_bgp_flowspec():
Expand Down

0 comments on commit 7c5f5d3

Please sign in to comment.