From 71ac0a89098c72ec7b78cc8ef238bef23227a392 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 26 Jul 2022 10:09:12 -0700 Subject: [PATCH] test-runner: make developer mode optional IWD can now be started without -E if needed --- tools/utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/utils.py b/tools/utils.py index 7a182848..a1b3e041 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -411,7 +411,8 @@ class Namespace: self._bus = dbus.bus.BusConnection(address_or_type=self.dbus_address) - def start_iwd(self, config_dir = '/tmp', storage_dir = '/tmp/iwd'): + def start_iwd(self, config_dir = '/tmp', storage_dir = '/tmp/iwd', + developer_mode = True): args = [] iwd_radios = ','.join([r.name for r in self.radios if r.use == 'iwd']) @@ -420,7 +421,10 @@ class Namespace: '--show-leak-kinds=all', '--log-file=/tmp/valgrind.log.%p']) - args.extend(['iwd', '-E']) + args.append('iwd') + + if developer_mode: + args.append('-E') if iwd_radios != '': args.extend(['-p', iwd_radios])