3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

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.
This commit is contained in:
James Prestwood 2022-06-22 16:02:17 -07:00 committed by Denis Kenzior
parent 2c0bb06d1a
commit 679cea02af

View File

@ -79,13 +79,14 @@ class Process(subprocess.Popen):
@staticmethod @staticmethod
def is_verbose(process, log=True): def is_verbose(process, log=True):
exclude = ['iwd-rtnl']
process = os.path.basename(process) process = os.path.basename(process)
if Process.testargs is None: if Process.testargs is None:
return False return False
# every process is verbose when logging is enabled # 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 return True
if process in Process.testargs.verbose: if process in Process.testargs.verbose: