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

auto-t: fix testAP

As with other tests, wait on device state instead of the network
object. The connectivity test was also changed to not check for
group traffic since AP does not negotiate the IGTK at this time.
This commit is contained in:
James Prestwood 2020-09-10 16:12:42 -07:00 committed by Denis Kenzior
parent 7b933db78a
commit b437bfaced

View File

@ -24,8 +24,8 @@ class Test(unittest.TestCase):
ordered_network.network_object.connect() ordered_network.network_object.connect()
condition = 'obj.connected' condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(ordered_network.network_object, condition) wd.wait_for_object_condition(dev, condition)
wd.unregister_psk_agent(psk_agent) wd.unregister_psk_agent(psk_agent)
@ -74,12 +74,11 @@ class Test(unittest.TestCase):
networks['TestAP2'].network_object.connect() networks['TestAP2'].network_object.connect()
condition = 'obj.connected' condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(networks['TestAP2'].network_object, wd.wait_for_object_condition(dev2, condition)
condition)
testutil.test_iface_operstate(dev2.name) testutil.test_iface_operstate(dev2.name)
testutil.test_ifaces_connected(dev1.name, dev2.name) testutil.test_ifaces_connected(dev1.name, dev2.name, group=False)
wd.unregister_psk_agent(psk_agent) wd.unregister_psk_agent(psk_agent)