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:
parent
6777ff621a
commit
eb1542c8e4
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue