From: Jouni Malinen Date: Wed, 11 Feb 2015 12:57:30 +0000 (+0200) Subject: tests: Remove temporary config file in wpas_config_file X-Git-Tag: hostap_2_4~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c9838b388081a1777d53ad4d9077c0e8579186b;p=thirdparty%2Fhostap.git 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 --- 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: