eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 78f5a5dde48f7f69a9073342a28c4280e6bf4278
parent 36777d1e688d345d37a6da3bb2065ce49509357c
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 13 Aug 2021 12:47:10 -0700

auto-t: speed up testRoamRetry

This test took quite a while to execute (~2 minutes on my machine)
because there was simply no other way to test this scenario but
waiting. Now the no-roam-candidates condition can be waited for
rather than just sleeping for 20 seconds. Additionally the default
RoamRetryInterval was being used which is 60 seconds. Instead
main.conf can set this to 5 seconds and really cut down on the time
to wait.

Part of a comment was also removed due to being incorrect. Even
with neighbor reports IWD still must scan, its just that the
scan is more limited and, in theory, faster.

Diffstat:
Mautotests/testRoamRetry/fast_retry_test.py | 7+++----
Aautotests/testRoamRetry/main.conf | 2++
Mautotests/testRoamRetry/stop_retry_test.py | 2+-
3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/autotests/testRoamRetry/fast_retry_test.py b/autotests/testRoamRetry/fast_retry_test.py @@ -82,7 +82,7 @@ class Test(unittest.TestCase): # schedule another attempt for 60 seconds later rule0.signal = -8000 - wd.wait(20) + device.wait_for_event('no-roam-candidates') self.assertEqual(device.state, iwd.DeviceState.connected) self.assertTrue(bss_hostapd[0].list_sta()) @@ -99,13 +99,12 @@ class Test(unittest.TestCase): wd.wait(1) # Assert low signal for BSS 0, check that iwd starts transition to BSS 1 - # in less than 10 seconds. Because of the neighbor report a scan should - # not be necessary. + # in less than 10 seconds. rule0.signal = -8000 rule1.signal = -2000 condition = 'obj.state == DeviceState.roaming' - wd.wait_for_object_condition(device, condition, max_wait=10) + wd.wait_for_object_condition(device, condition, max_wait=15) # Check that iwd is on BSS 1 once out of roaming state and doesn't # go through 'disconnected', 'autoconnect', 'connecting' in between diff --git a/autotests/testRoamRetry/main.conf b/autotests/testRoamRetry/main.conf @@ -0,0 +1,2 @@ +[General] +RoamRetryInterval=5 diff --git a/autotests/testRoamRetry/stop_retry_test.py b/autotests/testRoamRetry/stop_retry_test.py @@ -99,7 +99,7 @@ class Test(unittest.TestCase): condition = 'obj.state == DeviceState.roaming' self.assertRaises(TimeoutError, wd.wait_for_object_condition, device, - condition, max_wait=70) + condition, max_wait=10) device.disconnect()