tests: Close wpa_supplicant control interface sockets at the end

Close all the control interface sockets and delete the client socket
files explicitly at the end of the test loop. This removes needs for
various workarounds that tried to force WpaSupplicant and Ctrl class
__del__() to remove the sockets.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2024-01-31 12:16:36 +02:00 committed by Jouni Malinen
parent 6777ff621a
commit eb1542c8e4

View file

@ -721,6 +721,10 @@ def main():
if not reset_ok: if not reset_ok:
print("Terminating early due to device reset failure") print("Terminating early due to device reset failure")
break break
for d in dev:
d.close_ctrl()
if args.stdin_ctrl: if args.stdin_ctrl:
set_term_echo(sys.stdin.fileno(), True) set_term_echo(sys.stdin.fileno(), True)