From 69a5ccbe5cba4293e493c8ce11ac9afd503e9c10 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 25 Feb 2022 09:58:10 -0800 Subject: [PATCH] test-runner: start iwmon first This aids in debugging if iwd/hostapd/etc fail to start correctly. --- tools/test-runner | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/test-runner b/tools/test-runner index 64407a41..0b749238 100755 --- a/tools/test-runner +++ b/tools/test-runner @@ -1327,6 +1327,11 @@ def pre_test(ctx, test, copied): subtests = pruned + if ctx.args.log: + ctx.start_process(['iwmon', '--nowiphy']) + elif ctx.args.monitor: + ctx.start_process(['iwmon'], outfile=ctx.args.monitor) + ctx.start_dbus() ctx.start_haveged() ctx.start_dbus_monitor() @@ -1336,11 +1341,6 @@ def pre_test(ctx, test, copied): ctx.start_wpas_interfaces() ctx.start_ofono() - if ctx.args.log: - ctx.start_process(['iwmon', '--nowiphy']) - elif ctx.args.monitor: - ctx.start_process(['iwmon', '--nowiphy'], outfile=ctx.args.monitor) - if ctx.hw_config.has_option('SETUP', 'start_iwd'): start = ctx.hw_config.getboolean('SETUP', 'start_iwd') else: