commit 41b8a32dfc51bece992a6c89edc45457f0b88a2f
parent 3f686da5508b8ccd43dc207cc198244fd47230a4
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 10 Dec 2020 09:45:19 -0800
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.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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'