From: Jouni Malinen Date: Sun, 26 Jul 2015 10:34:54 +0000 (+0300) Subject: tests: Explicitly close hostapd global control socket on RELOG X-Git-Tag: hostap_2_5~303 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f9427c9cd2d7d9b2c8f392d99a54c3db4750a98;p=thirdparty%2Fhostap.git tests: Explicitly close hostapd global control socket on RELOG Without this, the run-tests.py socket could have been left in attached to receive all hostapd global events during a test case. This could hit the limit of pending messages on the socket since there is nothing clearing this socket during the execution of a test case. Fix this by explicitly closing the socket after having completed the RELOG command. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index c7cc77a46..a1e860017 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -483,6 +483,9 @@ def main(): result = "FAIL" hapd = None rename_log(args.logdir, 'hostapd', name, hapd) + if hapd: + del hapd + hapd = None wt = Wlantest() rename_log(args.logdir, 'hwsim0.pcapng', name, wt)