iwd/autotests/testNetconfig
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
..
connection_test.py auto-t: Validate netmasks in testNetconfig, add utility 2022-06-22 15:56:35 -05:00
dhcpd-v6.conf auto-t: Validate netmasks in testNetconfig, add utility 2022-06-22 15:56:35 -05:00
dhcpd.conf auto-t: Validate netmasks in testNetconfig, add utility 2022-06-22 15:56:35 -05:00
hw.conf auto-t: make hwsim registration off by default 2021-08-12 16:59:01 -05:00
main.conf auto-t: Use NameResolvingService=none 2022-05-20 10:15:17 -05:00
ssidTKIP.conf auto-t: add netconfig autotest 2020-09-15 20:20:40 -05:00
ssidTKIP.psk auto-t: Validate netmasks in testNetconfig, add utility 2022-06-22 15:56:35 -05:00
static_test.py auto-t: Ensure storage_dir exists, clean up 2022-06-22 15:56:57 -05:00