diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py index 4e694c84..6031b1dc 100644 --- a/autotests/util/hostapd.py +++ b/autotests/util/hostapd.py @@ -118,7 +118,11 @@ class HostapdCLI: return self.ctrl_sock.close() - os.remove(self.local_ctrl) + + try: + os.remove(self.local_ctrl) + except: + pass if self._hostapd_restarted: ctx.stop_process(ctx.hostapd.process, force)