3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

auto-t: clean up SAE autotests

SAE has a clogging test which requires 4 radios to all simultaneously
connect. All the other tests are only using one of these radios, so
in these tests we explicitly disconnect these devices preventing them
from autoconnecting.
This commit is contained in:
James Prestwood 2019-02-01 10:54:08 -08:00 committed by Denis Kenzior
parent ffa943f02f
commit 3ecf091196
2 changed files with 14 additions and 2 deletions

View File

@ -14,10 +14,16 @@ class Test(unittest.TestCase):
def test_connection_success(self):
wd = IWD(True)
devices = wd.list_devices(1)
devices = wd.list_devices(4)
self.assertIsNotNone(devices)
device = devices[0]
# These devices aren't used in this test, this makes logs a bit nicer
# since these devices would presumably start autoconnecting.
devices[1].disconnect()
devices[2].disconnect()
devices[3].disconnect()
condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition)

View File

@ -25,10 +25,16 @@ class Test(unittest.TestCase):
psk_agent = PSKAgent("secret123")
wd.register_psk_agent(psk_agent)
devices = wd.list_devices(1)
devices = wd.list_devices(4)
self.assertIsNotNone(devices)
device = devices[0]
# These devices aren't used in this test, this makes logs a bit nicer
# since these devices would presumably start autoconnecting.
devices[1].disconnect()
devices[2].disconnect()
devices[3].disconnect()
condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition)