Content-Type: multipart/mixed; boundary="===============8881878423583305167==" MIME-Version: 1.0 From: James Prestwood Subject: [PATCH 5/5] test-runner: fix exception in Hostapd __del__ Date: Mon, 16 Aug 2021 16:58:23 -0700 Message-ID: <20210816235823.146856-5-prestwoj@gmail.com> In-Reply-To: <20210816235823.146856-1-prestwoj@gmail.com> List-Id: To: iwd@lists.01.org --===============8881878423583305167== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 895d4299..dc65cca4 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] =3D None hapd.cli =3D None = -- = 2.31.1 --===============8881878423583305167==--