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

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)