Skip to contentSkip to conversation

test-runner: allow IWD to start with no radios

PATCH Applied James Prestwood 2 participants 2 messages Feb 10, 2022

lore
Share & tools
lore

James Prestwood

author
#0 lore raw

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
index 7176deaf..17be0593 100755
@@ -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
Applied
#1 lore raw

Hi 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