commit e993503c4defa4037975ddd6e1a3e439d159a72b
parent b731e121c96c04d503de13b79cebc0ce70068059
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 6 Apr 2022 12:14:46 -0700
test-runner: simplify start_iwd handling
Replace two separate if blocks to handle the default value
with fallback=True.
Diffstat:
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/tools/run-tests b/tools/run-tests
@@ -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)