3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

test-runner: simplify start_iwd handling

Replace two separate if blocks to handle the default value
with fallback=True.
This commit is contained in:
James Prestwood 2022-04-06 12:14:46 -07:00 committed by Denis Kenzior
parent b731e121c9
commit e993503c4d

View File

@ -886,15 +886,8 @@ def pre_test(ctx, test, copied):
ctx.start_wpas_interfaces()
ctx.start_ofono()
if ctx.hw_config.has_option('SETUP', 'start_iwd'):
start = ctx.hw_config.getboolean('SETUP', 'start_iwd')
else:
start = True
if start:
if ctx.hw_config.getboolean('SETUP', 'start_iwd', fallback=True):
ctx.start_iwd()
else:
print("Not starting IWD from test-runner")
print(ctx)