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
1 changed files with 2 additions and 1 deletions

View File

@ -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: