From: Mark Stapp Date: Tue, 2 Mar 2021 18:59:35 +0000 (-0500) Subject: tests: make the topogen object available when starting daemons X-Git-Tag: base_8.1~242^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0c449b017b9146c6f14e6091fdb829358a534553;p=mirror%2Ffrr.git tests: make the topogen object available when starting daemons Pass the topogen 'tgen' object into the startRouterDaemons() method. it can be used to start a debug cli immediately after starting a daemon, and that can be handy. Signed-off-by: Mark Stapp --- diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 1e6ef1b2b3..3f194f812a 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1367,7 +1367,7 @@ class Router(Node): logger.info("BFD Test, but no bfdd compiled or installed") return "BFD Test, but no bfdd compiled or installed" - return self.startRouterDaemons() + return self.startRouterDaemons(tgen=tgen) def getStdErr(self, daemon): return self.getLog("err", daemon) @@ -1378,7 +1378,7 @@ class Router(Node): def getLog(self, log, daemon): return self.cmd("cat {}/{}/{}.{}".format(self.logdir, self.name, daemon, log)) - def startRouterDaemons(self, daemons=None): + def startRouterDaemons(self, daemons=None, tgen=None): "Starts all FRR daemons for this router." bundle_data = ""