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:
parent
2c0bb06d1a
commit
679cea02af
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user