commit 81cf11b0f5feb03c5570e3537954fc2d1165cda4
parent f0a890da8a3cf942fb3013496c7972d152ff1d5e
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 17 Aug 2021 09:45:01 -0700
test-runner: fix exception in Hostapd __del__
If Hostapd did not start there was no CLI instance created and
that member should be be accessed.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/tools/test-runner b/tools/test-runner
@@ -546,6 +546,9 @@ class Hostapd:
print("Failed to remove %s" % self.global_ctrl_iface)
for hapd in self.instances:
+ if not hapd.cli:
+ continue
+
hapd.cli._instances[hapd.config] = None
hapd.cli = None