From 5b7a4ad33a8d7adab667d069fb744dc038ca0ef4 Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Thu, 6 Apr 2017 00:34:43 -0700 Subject: [PATCH] bgp_multiview_topo1: Fix case of tests hanging if convergence is not successful. - Part of a command was missing which caused a hang in cases when BGP didn't converge Signed-off-by: Martin Winter --- tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py b/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py index 3e548d6ff5..6fef5d2284 100755 --- a/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py +++ b/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py @@ -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 -- 2.39.5