From 2b62abe44159a64e9054203b8a1545141e8710c5 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Wed, 19 Apr 2023 07:57:42 -0400 Subject: [PATCH] tests: restore per-node logging functionality After the munet switch we weren't passing the logger on to low-level LinuxNamespace and thus Commander parent classes, so the lowest-level `cmd_status` logs were missing from more specific log files in the run directory. Signed-off-by: Christian Hopps --- tests/topotests/lib/micronet_compat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/topotests/lib/micronet_compat.py b/tests/topotests/lib/micronet_compat.py index f82013656..ccb3e56b6 100644 --- a/tests/topotests/lib/micronet_compat.py +++ b/tests/topotests/lib/micronet_compat.py @@ -66,6 +66,8 @@ class Node(LinuxNamespace): nkwargs["unet"] = kwargs["unet"] if "private_mounts" in kwargs: nkwargs["private_mounts"] = kwargs["private_mounts"] + if "logger" in kwargs: + nkwargs["logger"] = kwargs["logger"] # This is expected by newer munet CLI code self.config_dirname = "" -- 2.39.2