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)