mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 11:25:41 +00:00
tests: Fix logging output directory for older tests
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
1a31ada871
commit
8972e2710c
@ -1065,7 +1065,7 @@ class Router(Node):
|
|||||||
if self.logdir is None:
|
if self.logdir is None:
|
||||||
cur_test = os.environ["PYTEST_CURRENT_TEST"]
|
cur_test = os.environ["PYTEST_CURRENT_TEST"]
|
||||||
self.logdir = "/tmp/topotests/" + cur_test[
|
self.logdir = "/tmp/topotests/" + cur_test[
|
||||||
0 : cur_test.find(".py")
|
cur_test.find("/")+1 : cur_test.find(".py")
|
||||||
].replace("/", ".")
|
].replace("/", ".")
|
||||||
|
|
||||||
# If the logdir is not created, then create it and set the
|
# If the logdir is not created, then create it and set the
|
||||||
@ -1380,6 +1380,7 @@ class Router(Node):
|
|||||||
|
|
||||||
# Starts actual daemons without init (ie restart)
|
# Starts actual daemons without init (ie restart)
|
||||||
# cd to per node directory
|
# cd to per node directory
|
||||||
|
self.cmd("install -d {}/{}".format(self.logdir, self.name))
|
||||||
self.cmd("cd {}/{}".format(self.logdir, self.name))
|
self.cmd("cd {}/{}".format(self.logdir, self.name))
|
||||||
self.cmd("umask 000")
|
self.cmd("umask 000")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user