mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +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:
parent
b731e121c9
commit
e993503c4d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user