mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
auto-t: update uses of wait_for_object_change
This removes waiting for DeviceState.roaming, which is now done automatically by wait_for_object_change.
This commit is contained in:
parent
23a22edaed
commit
cd258df337
@ -37,9 +37,6 @@ class Test(unittest.TestCase):
|
||||
|
||||
device.roam(self.bss_hostapd[1].bssid)
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# Check that iwd is on BSS 1 once out of roaming state and doesn't
|
||||
# go through 'disconnected', 'autoconnect', 'connecting' in between
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
|
@ -70,9 +70,6 @@ class Test(unittest.TestCase):
|
||||
#rule0.signal = -8000
|
||||
device.roam(self.bss_hostapd[1].bssid)
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# Check that iwd is on BSS 1 once out of roaming state and doesn't
|
||||
# go through 'disconnected', 'autoconnect', 'connecting' in between
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
|
@ -53,9 +53,6 @@ class Test(unittest.TestCase):
|
||||
|
||||
device.roam(hapd1.bssid)
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
to_condition = 'obj.state == DeviceState.connected'
|
||||
wd.wait_for_object_change(device, from_condition, to_condition)
|
||||
|
@ -52,9 +52,6 @@ class Test(unittest.TestCase):
|
||||
else:
|
||||
device.roam(self.bss_hostapd[1].bssid)
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# Check that iwd is on BSS 1 once out of roaming state and doesn't
|
||||
# go through 'disconnected', 'autoconnect', 'connecting' in between
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
@ -76,9 +73,6 @@ class Test(unittest.TestCase):
|
||||
|
||||
device.roam(self.bss_hostapd[0].bssid)
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# Check that iwd is on BSS 0 once out of roaming state and doesn't
|
||||
# go through 'disconnected', 'autoconnect', 'connecting' in between
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
|
@ -48,9 +48,6 @@ class Test(unittest.TestCase):
|
||||
|
||||
device.roam(bss1_addr)
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# TODO: verify that the PMK from preauthentication was used
|
||||
|
||||
# Check that iwd is on BSS 1 once out of roaming state and doesn't
|
||||
|
@ -91,9 +91,6 @@ class Test(unittest.TestCase):
|
||||
rule0.signal = -8000
|
||||
rule1.signal = -2000
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# Check that iwd is on BSS 1 once out of roaming state and doesn't
|
||||
# go through 'disconnected', 'autoconnect', 'connecting' in between
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
|
@ -67,9 +67,6 @@ class Test(unittest.TestCase):
|
||||
# connects to BSS 1
|
||||
rule0.signal = -8000
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# Check that iwd is on BSS 1 once out of roaming state and doesn't
|
||||
# go through 'disconnected', 'autoconnect', 'connecting' in between
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
|
@ -39,9 +39,6 @@ class Test(unittest.TestCase):
|
||||
|
||||
device.roam(self.bss_hostapd[1].bssid)
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# Check that iwd is on BSS 1 once out of roaming state and doesn't
|
||||
# go through 'disconnected', 'autoconnect', 'connecting' in between
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
|
Loading…
Reference in New Issue
Block a user