From: Martin Winter Date: Sat, 19 Nov 2016 07:42:49 +0000 (-0800) Subject: ospf6-test1: Look for test config in directories relative to main script location X-Git-Tag: frr-7.1-dev~151^2~380 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d14615d8652700814a167598d6e43f2a2053753e;p=matthieu%2Ffrr.git ospf6-test1: Look for test config in directories relative to main script location --- diff --git a/tests/topotests/ospf6-test1/ospf6-test1.py b/tests/topotests/ospf6-test1/ospf6-test1.py index a60965847c..0d8594d527 100755 --- a/tests/topotests/ospf6-test1/ospf6-test1.py +++ b/tests/topotests/ospf6-test1/ospf6-test1.py @@ -202,7 +202,6 @@ class NetworkTopo(Topo): for i in range(1, 7): switch[i] = self.addSwitch('SW%s' % i, dpid=int2dpid(i), cls=LegacySwitch) - # # Define Quagga Routers # @@ -210,7 +209,6 @@ class NetworkTopo(Topo): for i in range(1, 5): router[i] = self.addNode('r%s' % i, cls=QuaggaRouter, privateDirs=quaggaPrivateDirs) - # # Wire up the switches and routers # @@ -237,8 +235,8 @@ def run(): # Starting Routers for i in range(1, 5): - net['r%s' % i].loadConf('zebra', 'r%s/zebra.conf' % i) - net['r%s' % i].loadConf('ospf6d', 'r%s/ospf6d.conf' % i) + net['r%s' % i].loadConf('zebra', '%s/r%s/zebra.conf' % (thisDir, i)) + net['r%s' % i].loadConf('ospf6d', '%s/r%s/ospf6d.conf' % (thisDir, i)) net['r%s' % i].startQuagga() print('') @@ -279,13 +277,13 @@ def run(): print("OSPFv3 converged.") print("\nwaiting 15s for routes to populate") - sleep(10) + sleep(15) # Verify OSPFv3 Routing Table print("\nVerifing OSPFv3 Routing Table") failures = 0 for i in range(1, 5): - refTableFile = 'r%s/show_ipv6_route.ref' % i + refTableFile = '%s/r%s/show_ipv6_route.ref' % (thisDir, i) if os.path.isfile(refTableFile): # Read expected result from file expected = open(refTableFile).read().rstrip()