]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgp_multiview_topo1: Fix case of tests hanging if convergence is not successful.
authorMartin Winter <mwinter@opensourcerouting.org>
Thu, 6 Apr 2017 07:34:43 +0000 (00:34 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:11 +0000 (20:22 -0500)
- Part of a command was missing which caused a hang in cases when BGP didn't converge

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py

index 3e548d6ff5e12cb392ec984dd23f3a9e396d60cd..6fef5d22847da978fee0f4d80904c77b44ba607f 100755 (executable)
@@ -237,7 +237,7 @@ def test_bgp_converge():
             break
     else:
         # Bail out with error if a router fails to converge
-        bgpStatus = net['r%s' % i].cmd('show ip bgp view %s summary"')
+        bgpStatus = net['r%s' % i].cmd('vtysh -c "show ip bgp view %s summary"' % view)
         assert False, "BGP did not converge:\n%s" % bgpStatus
 
     # Wait for an extra 30s to announce all routes