From: Rafael Zalamena Date: Mon, 24 Jul 2017 14:55:42 +0000 (-0300) Subject: bgp-ecmp-topo: use the new sleep function X-Git-Tag: frr-7.1-dev~151^2~248 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=62271fe3fa6b327cf06024263cab81a6e1ad06a7;p=matthieu%2Ffrr.git bgp-ecmp-topo: use the new sleep function --- diff --git a/tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py b/tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py index 0e8bd7b0ea..15ebf879bf 100755 --- a/tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py +++ b/tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py @@ -29,7 +29,6 @@ test_bgp_ecmp_topo1.py: Test BGP topology with ECMP (Equal Cost MultiPath). import os import sys import pytest -from time import sleep # Save the Current Working Directory to find configuration files. CWD = os.path.dirname(os.path.realpath(__file__)) @@ -103,8 +102,7 @@ def setup_module(module): router.start() # Starting Hosts and init ExaBGP on each of them - logger.info('starting BGP on all {} Peers in 10s'.format(total_ebgp_peers)) - sleep(10) + topotest.sleep(10, 'starting BGP on all {} peers'.format(total_ebgp_peers)) peer_list = tgen.exabgp_peers() for pname, peer in peer_list.iteritems(): peer_dir = os.path.join(CWD, pname)