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

auto-t: use tearDownClass in hidden network test

A failure in this test could leave stale network profiles, which
may cause future tests to fail.
This commit is contained in:
James Prestwood 2021-10-20 13:53:31 -07:00 committed by Denis Kenzior
parent e4b78d83d6
commit e782911d33
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class TestOpenNetwork(unittest.TestCase):
tca.validate('ssidHiddenOpen', False) tca.validate('ssidHiddenOpen', False)
tca.validate('ssidHiddenOpen', True) tca.validate('ssidHiddenOpen', True)
@classmethod
def tearDownClass(cls):
IWD.clear_storage() IWD.clear_storage()
if __name__ == '__main__': if __name__ == '__main__':

View File

@ -25,6 +25,8 @@ class TestWpaNetwork(unittest.TestCase):
tca.validate('ssidHiddenWPA', False, None, True) tca.validate('ssidHiddenWPA', False, None, True)
tca.validate('ssidHiddenWPA', True, None, True) tca.validate('ssidHiddenWPA', True, None, True)
@classmethod
def tearDownClass(cls):
IWD.clear_storage() IWD.clear_storage()
if __name__ == '__main__': if __name__ == '__main__':