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:
parent
eb88a5ba74
commit
1c9838b388
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue