3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

test-runner: start iwmon first

This aids in debugging if iwd/hostapd/etc fail to start correctly.
This commit is contained in:
James Prestwood 2022-02-25 09:58:10 -08:00 committed by Denis Kenzior
parent 3348f20696
commit 69a5ccbe5c

View File

@ -1327,6 +1327,11 @@ def pre_test(ctx, test, copied):
subtests = pruned 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_dbus()
ctx.start_haveged() ctx.start_haveged()
ctx.start_dbus_monitor() ctx.start_dbus_monitor()
@ -1336,11 +1341,6 @@ def pre_test(ctx, test, copied):
ctx.start_wpas_interfaces() ctx.start_wpas_interfaces()
ctx.start_ofono() 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'): if ctx.hw_config.has_option('SETUP', 'start_iwd'):
start = ctx.hw_config.getboolean('SETUP', 'start_iwd') start = ctx.hw_config.getboolean('SETUP', 'start_iwd')
else: else: