mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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
@ -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 New Issue
Block a user