summaryrefslogtreecommitdiffstats
path: root/tests/topotests/lib/topotest.py
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2020-07-02 19:49:25 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2020-07-02 19:52:46 +0200
commit14556847406bc1c73c295220ba788b160c1e814d (patch)
tree69b4761710e0a812448439d81390e687a43cbe53 /tests/topotests/lib/topotest.py
parenttopotests: remove duplicated code (diff)
downloadfrr-14556847406bc1c73c295220ba788b160c1e814d.tar.xz
frr-14556847406bc1c73c295220ba788b160c1e814d.zip
topotests: start logging early
Start logging early everything (including debug) to `/tmp/topotest/<test>/<node>/<daemon>.{out,err}`. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--tests/topotests/lib/topotest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py
index 21db59b09..0fe3f463a 100644
--- a/tests/topotests/lib/topotest.py
+++ b/tests/topotests/lib/topotest.py
@@ -1188,7 +1188,7 @@ class Router(Node):
zebra_path = os.path.join(self.daemondir, "zebra")
zebra_option = self.daemons_options["zebra"]
self.cmd(
- "{0} {1} > zebra.out 2> zebra.err &".format(
+ "{0} {1} --log stdout --log-level debug > zebra.out 2> zebra.err &".format(
zebra_path, zebra_option, self.logdir, self.name
)
)
@@ -1204,7 +1204,7 @@ class Router(Node):
staticd_path = os.path.join(self.daemondir, "staticd")
staticd_option = self.daemons_options["staticd"]
self.cmd(
- "{0} {1} > staticd.out 2> staticd.err &".format(
+ "{0} {1} --log stdout --log-level debug > staticd.out 2> staticd.err &".format(
staticd_path, staticd_option, self.logdir, self.name
)
)
@@ -1228,7 +1228,7 @@ class Router(Node):
daemon_path = os.path.join(self.daemondir, daemon)
self.cmd(
- "{0} {1} > {2}.out 2> {2}.err &".format(
+ "{0} {1} --log stdout --log-level debug > {2}.out 2> {2}.err &".format(
daemon_path, self.daemons_options.get(daemon, ""), daemon
)
)