From 1c9838b388081a1777d53ad4d9077c0e8579186b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 11 Feb 2015 14:57:30 +0200 Subject: [PATCH] tests: Remove temporary config file in wpas_config_file The new wpa_supplicant configuration file writing style leaves behind the temporary file (.tmp) if renaming fails. Clean that up in the test case execution. Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index 1974f7f98..1dd839c14 100644 --- a/tests/hwsim/test_wpas_config.py +++ b/tests/hwsim/test_wpas_config.py @@ -132,6 +132,10 @@ def test_wpas_config_file(dev): os.remove(config) except: pass + try: + os.remove(config + ".tmp") + except: + pass try: os.rmdir(config) except: -- 2.47.2