test-runner: allow IWD to start with no radios
James Prestwood
PATCH 1/1 test-runner: allow IWD to start with no radios
This is useful for testing hotplug scenarios
--- tools/test-runner | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
tools/test-runner +3 -2
@@ -668,7 +668,7 @@ class Namespace: self._bus = dbus.bus.BusConnection(address_or_type=self.dbus_address) def start_iwd(self, config_dir = '/tmp', storage_dir = '/tmp/iwd'): - args = [] + args = ['iwd', '-E'] iwd_radios = ','.join([r.name for r in self.radios if r.use == 'iwd']) if self.args.valgrind:
@@ -676,7 +676,8 @@ class Namespace: '--show-leak-kinds=all', '--log-file=/tmp/valgrind.log.%p']) - args.extend(['iwd', '-p', iwd_radios, '-E']) + if iwd_radios != '': + args.extend(['-p', iwd_radios]) if self.is_verbose(args[0]): args.append('-d')
Signature · 1 line
2.34.1
Denis Kenzior
AppliedHi James,
Quoted 5 lines · James Prestwood
This is useful for testing hotplug scenarios
--- tools/test-runner | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Applied, thanks.
Regards,
-Denis