From: Lou Berger Date: Mon, 12 Mar 2018 15:35:07 +0000 (-0400) Subject: lib: TopoExaBGP.start - report unexpected exabgp output X-Git-Tag: frr-7.1-dev~151^2~112 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=87d5e16a45fe6351ef1456b4555837f3a9b51c23;p=matthieu%2Ffrr.git lib: TopoExaBGP.start - report unexpected exabgp output Signed-off-by: Lou Berger --- diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index d3d50e816c..4943144725 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -890,7 +890,10 @@ class TopoExaBGP(TopoHost): self.run('chmod 644 /etc/exabgp/*') self.run('chmod a+x /etc/exabgp/*.py') self.run('chown -R exabgp:exabgp /etc/exabgp') - self.run('exabgp -e /etc/exabgp/exabgp.env /etc/exabgp/exabgp.cfg') + output = self.run('exabgp -e /etc/exabgp/exabgp.env /etc/exabgp/exabgp.cfg') + if output == None or len(output) == 0: + output = '' + logger.info('{} exabgp started, output={}'.format(self.name, output)) def stop(self, wait=True): "Stop ExaBGP peer and kill the daemon"