]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Close wpa_supplicant control interface sockets at the end
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 31 Jan 2024 10:16:36 +0000 (12:16 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 31 Jan 2024 10:16:36 +0000 (12:16 +0200)
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>
tests/hwsim/run-tests.py

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