test-runner: Add flags for DHCP and TLS verbose output

Add "iwd-tls" and "iwd-dhcp" flags for -v.  These should automatically
enable "-v iwd" output because of the substring matching.
This commit is contained in:
Andrew Zaborowski 2020-09-29 18:37:12 +02:00 committed by Denis Kenzior
parent 15c04bb395
commit b321db20ad
1 changed files with 6 additions and 0 deletions

View File

@ -573,6 +573,12 @@ class TestContext:
env['CONFIGURATION_DIRECTORY'] = config_dir
env['STATE_DIRECTORY'] = '/var/lib/iwd'
if self.is_verbose('iwd-dhcp'):
env['IWD_DHCP_DEBUG'] = '1'
if self.is_verbose('iwd-tls'):
env['IWD_TLS_DEBUG'] = '1'
pid = self.start_process(args, env=env)
return pid