mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 00:56:19 +00:00
rip-topo1: Add check to make sure daemons are still running between essential tests
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
7e7fc73b49
commit
28aa9ae658
@ -147,7 +147,7 @@ def test_router_running():
|
||||
print("******************************************\n")
|
||||
sleep(5)
|
||||
|
||||
# Starting Routers
|
||||
# Make sure that all daemons are running
|
||||
for i in range(1, 4):
|
||||
fatal_error = net['r%s' % i].checkRouterRunning()
|
||||
assert fatal_error == "", fatal_error
|
||||
@ -172,6 +172,11 @@ def test_converge_protocols():
|
||||
# Not really implemented yet - just sleep 60 secs for now
|
||||
sleep(60)
|
||||
|
||||
# Make sure that all daemons are still running
|
||||
for i in range(1, 4):
|
||||
fatal_error = net['r%s' % i].checkRouterRunning()
|
||||
assert fatal_error == "", fatal_error
|
||||
|
||||
# For debugging after starting FRR/Quagga daemons, uncomment the next line
|
||||
# CLI(net)
|
||||
|
||||
@ -221,6 +226,11 @@ def test_rip_status():
|
||||
|
||||
assert failures == 0, "IP RIP status failed for router r%s:\n%s" % (i, diff)
|
||||
|
||||
# Make sure that all daemons are still running
|
||||
for i in range(1, 4):
|
||||
fatal_error = net['r%s' % i].checkRouterRunning()
|
||||
assert fatal_error == "", fatal_error
|
||||
|
||||
# For debugging after starting FRR/Quagga daemons, uncomment the next line
|
||||
# CLI(net)
|
||||
|
||||
@ -268,6 +278,11 @@ def test_rip_routes():
|
||||
|
||||
assert failures == 0, "SHOW IP RIP failed for router r%s:\n%s" % (i, diff)
|
||||
|
||||
# Make sure that all daemons are still running
|
||||
for i in range(1, 4):
|
||||
fatal_error = net['r%s' % i].checkRouterRunning()
|
||||
assert fatal_error == "", fatal_error
|
||||
|
||||
# For debugging after starting FRR/Quagga daemons, uncomment the next line
|
||||
# CLI(net)
|
||||
|
||||
@ -315,6 +330,11 @@ def test_zebra_ipv4_routingTable():
|
||||
|
||||
assert failures == 0, "Zebra IPv4 Routing Table verification failed for router r%s:\n%s" % (i, diff)
|
||||
|
||||
# Make sure that all daemons are still running
|
||||
for i in range(1, 4):
|
||||
fatal_error = net['r%s' % i].checkRouterRunning()
|
||||
assert fatal_error == "", fatal_error
|
||||
|
||||
# For debugging after starting FRR/Quagga daemons, uncomment the next line
|
||||
# CLI(net)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user