iwd/autotests/util
Andrew Zaborowski a46707a595 auto-t: Ensure storage_dir exists, clean up
In iwd.py make sure all the static methods that touch IWD storage take the
storage_dir parameter instead of hardcoding IWD_STORAGE_DIR, and make
sure that parameter is actually used.

Create the directory if it doesn't exist before copying files into it.
This fixes a problem in testNetconfig where

`IWD.copy_to_storage('ssidTKIP.psk', '/tmp/storage')`

would result in /tmp/storage being created as a file, rather than a
directory containing a file, and resulting in IWD failing to start with:

`Failed to create /tmp/storage`

runner.py creates /tmp/iwd but that doesn't account for IWD sessions
with a custom storage dir path.
2022-06-22 15:56:57 -05:00
..
config.py auto-t: introduce pure python test-runner re-write 2020-09-10 17:59:49 -05:00
ead.py auto-t: correctly import Mapping from collections 2022-06-01 11:01:50 -05:00
hlrauc.py auto-t: hlrauc.py: remove unix socket on cleanup 2021-02-26 10:07:17 -06:00
hostapd.py auto-t: fix eapol_reauth utility 2022-05-26 11:24:52 -05:00
hwsim.py auto-t: correctly import Mapping from collections 2022-06-01 11:01:50 -05:00
iwd.py auto-t: Ensure storage_dir exists, clean up 2022-06-22 15:56:57 -05:00
ofono.py auto-t: ofono.py: use non_block_wait 2021-08-13 11:16:19 -05:00
testutil.py auto-t: Validate netmasks in testNetconfig, add utility 2022-06-22 15:56:35 -05:00
wpas.py auto-t: allow skipping tests is wpa_supplicant is not found 2022-06-02 16:47:02 -05:00