]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Use proper temp files for dynamically created config
authorJouni Malinen <j@w1.fi>
Sun, 23 Feb 2020 15:38:23 +0000 (17:38 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Feb 2020 16:20:50 +0000 (18:20 +0200)
commitaf9d8c758d9e8a5dab83e11822263fbd4c54eadd
treeba61bb69c4f87ffd3132de28238026376b55e2b3
parent6998ef48c803bef309bc93fa01566d4137cfd13a
tests: Use proper temp files for dynamically created config

Replace the hardcoded /tmp filenames for generated ACL and BSS
configuration files with proper temporary files from tempfile.mkstemp()
to avoid conflicts with existing files or with parallel uses. Remove ACL
files from the local directory at the end of each test case. BSS files
are currently left behind, but can be cleaned up separately if needed
for non-VM testing (VM testing has those on ramdrive so they get dropped
automatically at the end) and for remote devices.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/hostapd.py
tests/hwsim/test_ap_ft.py
tests/hwsim/test_ap_params.py
tests/hwsim/test_ap_vlan.py
tests/hwsim/test_hapd_ctrl.py