test-runner: have start_iwd take a storage dir

Allow the storage directory (default /tmp/iwd) to be configured
just like the state directory. This is in order to support multiple
IWD instances which require separate storage directories for network
provisioning files.
This commit is contained in:
James Prestwood 2020-12-10 09:45:19 -08:00 committed by Denis Kenzior
parent 3f686da550
commit 41b8a32dfc
1 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ class Namespace:
self._bus = dbus.bus.BusConnection(address_or_type=self.dbus_address)
def start_iwd(self, config_dir = '/tmp'):
def start_iwd(self, config_dir = '/tmp', storage_dir = '/tmp/iwd'):
args = []
iwd_radios = ','.join([r.name for r in self.radios if r.use == 'iwd'])
@ -575,7 +575,7 @@ class Namespace:
env = os.environ.copy()
env['CONFIGURATION_DIRECTORY'] = config_dir
env['STATE_DIRECTORY'] = '/tmp/iwd'
env['STATE_DIRECTORY'] = storage_dir
if self.is_verbose('iwd-dhcp'):
env['IWD_DHCP_DEBUG'] = '1'