From 679cea02affd537a87d60823b11ae01d3a0e25a4 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 22 Jun 2022 16:02:17 -0700 Subject: [PATCH] test-runner: exclude 'iwd-rtnl' from being enabled with --log Enabling this ends up dumping so much logging and, at least with namespaces, seems to break the logger module and cause really weird behavior, worst of which is that all processes start dumping to stdout. This can still be enabled explicitly with --verbose iwd-rtnl, but is turned off by default when --log is used. --- tools/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/utils.py b/tools/utils.py index 3cee9a22..d22b0a7e 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -79,13 +79,14 @@ class Process(subprocess.Popen): @staticmethod def is_verbose(process, log=True): + exclude = ['iwd-rtnl'] process = os.path.basename(process) if Process.testargs is None: return False # every process is verbose when logging is enabled - if log and Process.testargs.log: + if log and Process.testargs.log and process not in exclude: return True if process in Process.testargs.verbose: