auto-t: improve testDPP reliablity

First disconnect wpa_supplicant to make sure it wont miss frames if
it decides to connect. Also alter the order of things for the
configurator test so autoconnect doesn't start until after hostapd
is up (avoids additional scanning and delays)
This commit is contained in:
James Prestwood 2022-01-12 10:08:45 -08:00 committed by Denis Kenzior
parent c5fb68bb2e
commit b7b0b4eb02
1 changed files with 5 additions and 3 deletions

View File

@ -35,6 +35,7 @@ class Test(unittest.TestCase):
self.wd.wait_for_object_condition(self.device, condition)
def test_iwd_as_enrollee_scan_after(self):
self.wpas.disconnect()
uri = self.device.dpp_start_enrollee()
self.wpas.dpp_configurator_create(uri)
@ -66,10 +67,11 @@ class Test(unittest.TestCase):
self.wd.wait_for_object_condition(self.device, condition)
def test_iwd_as_configurator(self):
self.device.autoconnect = True
IWD.copy_to_storage('ssidCCMP.psk')
self.hapd.reload()
self.hapd.wait_for_event('AP-ENABLED')
IWD.copy_to_storage('ssidCCMP.psk')
self.device.autoconnect = True
condition = 'obj.state == DeviceState.connected'
self.wd.wait_for_object_condition(self.device, condition)