tests: Remove temporary config file in wpas_config_file

The new wpa_supplicant configuration file writing style leaves behind
the temporary file (<filename>.tmp) if renaming fails. Clean that up in
the test case execution.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-02-11 14:57:30 +02:00 committed by Jouni Malinen
parent eb88a5ba74
commit 1c9838b388

View File

@ -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: