From 81cf11b0f5feb03c5570e3537954fc2d1165cda4 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 17 Aug 2021 09:45:01 -0700 Subject: [PATCH] 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. --- tools/test-runner | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/test-runner b/tools/test-runner index 4e06df84..62653de7 100755 --- 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