From: Jouni Malinen Date: Wed, 31 Jan 2024 10:16:36 +0000 (+0200) Subject: tests: Close wpa_supplicant control interface sockets at the end X-Git-Tag: hostap_2_11~391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb1542c8e4b12cccc6eaacda4c6d5a8d1b582f7c;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 1a23e0add..1fdd923c4 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -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)