3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

auto-t: fix testConnectAutoconnect

There was no open ssid provisioning file, which was fine as the
first test should have created one. But to be safe, include one
explicitly and use the proper setUp/tearDown functions.
This commit is contained in:
James Prestwood 2021-10-20 13:53:29 -07:00 committed by Denis Kenzior
parent 6a4fffe6da
commit 2dec023f63
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,10 @@ class TestOpenNetwork(unittest.TestCase):
tca.validate('ssidOpen', False) tca.validate('ssidOpen', False)
tca.validate('ssidOpen', True) tca.validate('ssidOpen', True)
def setUp(self):
IWD.copy_to_storage('ssidOpen.open')
def tearDown(self):
IWD.clear_storage() IWD.clear_storage()
if __name__ == '__main__': if __name__ == '__main__':