diff options
| author | Martin Winter <mwinter@opensourcerouting.org> | 2020-11-27 03:16:55 +0100 |
|---|---|---|
| committer | Martin Winter <mwinter@opensourcerouting.org> | 2020-11-27 19:45:15 +0100 |
| commit | 8972e2710c9b1d8764666ccfbb800e054fe277c7 (patch) | |
| tree | 85da4747c54c5137594d5d2a85f8467e9738d1d3 /tests/topotests/lib/topotest.py | |
| parent | 1a31ada871c2ccc1cf79d9e85a6f27202c5b8bfb (diff) | |
tests: Fix logging output directory for older tests
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/lib/topotest.py')
| -rw-r--r-- | tests/topotests/lib/topotest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 29471c00fc..7047c52b18 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1065,7 +1065,7 @@ class Router(Node): if self.logdir is None: cur_test = os.environ["PYTEST_CURRENT_TEST"] self.logdir = "/tmp/topotests/" + cur_test[ - 0 : cur_test.find(".py") + cur_test.find("/")+1 : cur_test.find(".py") ].replace("/", ".") # 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) # cd to per node directory + self.cmd("install -d {}/{}".format(self.logdir, self.name)) self.cmd("cd {}/{}".format(self.logdir, self.name)) self.cmd("umask 000") |
