diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-03-25 14:47:49 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-03-25 15:16:12 -0300 |
| commit | 87ba6e1e3ab2f45108f39ec71a2da96d66a6d18a (patch) | |
| tree | 7e09968772ed5a99c5b1e12dc182531607de1b3a | |
| parent | 0d5e41c628f3f72983be354cde3a49498790b37e (diff) | |
topotests/lib: fix router specific log output
Change the router log output to the previous folder so it doesn't get
erased when starting the old API (unbreaks command/output logging on
Topogen).
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
| -rw-r--r-- | tests/topotests/lib/topogen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index 8688a13aef..d989240a16 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -586,9 +586,9 @@ class TopoRouter(TopoGear): os.system('chmod -R go+rw /tmp/topotests') # Open router log file - logfile = '{0}/{1}.log'.format(dir, name) - + logfile = '{0}/{1}.log'.format(self.logdir, name) self.logger = logger_config.get_logger(name=name, target=logfile) + self.tgen.topo.addNode(self.name, cls=self.cls, **params) def __str__(self): |
