From 41b8a32dfc51bece992a6c89edc45457f0b88a2f Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 10 Dec 2020 09:45:19 -0800 Subject: [PATCH] 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. --- tools/test-runner | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test-runner b/tools/test-runner index 3a9cfce2..c2ff7eff 100755 --- a/tools/test-runner +++ b/tools/test-runner @@ -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'