eiwd

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

commit dbd6ddfc9503b41e5ef22a35bbcd369cd063af0d
parent 95ad47bd98d0ab02dd4e35ea2893074c823defb4
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 31 Mar 2022 16:16:38 -0700

auto-t: cleanup testRRM

This removes prints which were never supposed to make it upstream as
well as changes sleep() to wd.wait() as well as increase the wait
period to fix issues with how fast UML runs the tests.

Diffstat:
Mautotests/testRRM/connection_test.py | 32+++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)

diff --git a/autotests/testRRM/connection_test.py b/autotests/testRRM/connection_test.py @@ -11,8 +11,6 @@ from iwd import NetworkType from hostapd import HostapdCLI import testutil -from time import sleep - # Table beacon with wildcard BSSID basic_beacon = '51000000000002ffffffffffff020100' # Table beacon with wildcard BSSID and SSID filter @@ -53,51 +51,43 @@ class Test(unittest.TestCase): hapd.wait_for_event('AP-STA-CONNECTED') + wd.wait(1) + # This should return both APs hapd.req_beacon(device.address, basic_beacon) for e in ['BEACON-RESP-RX', 'BEACON-RESP-RX']: - event = hapd.wait_for_event(e) - if event: - print(event) + hapd.wait_for_event(e) - sleep(0.5) + wd.wait(1) # This should return just ssidRRM hapd.req_beacon(device.address, beacon_with_ssid) - event = hapd.wait_for_event('BEACON-RESP-RX') - if event: - print(event) + hapd.wait_for_event('BEACON-RESP-RX') - sleep(0.5) + wd.wait(1) # This should passive scan on channel 11, returning otherSSID hapd.req_beacon(device.address, beacon_passive) # TODO: See if we are scanning here (scan not initiated from station) - event = hapd.wait_for_event('BEACON-RESP-RX') - if event: - print(event) + hapd.wait_for_event('BEACON-RESP-RX') - sleep(0.5) + wd.wait(1) # This should active scan on channel 11, returning otherSSID hapd.req_beacon(device.address, beacon_active) # TODO: See if we are scanning here (scan not initiated from station) - event = hapd.wait_for_event('BEACON-RESP-RX') - if event: - print(event) + hapd.wait_for_event('BEACON-RESP-RX') - sleep(0.5) + wd.wait(1) # This should passive scan on channel 11, returning otherSSID hapd.req_beacon(device.address, beacon_passive_duration) # TODO: See if we are scanning here (scan not initiated from station) - event = hapd.wait_for_event('BEACON-RESP-RX') - if event: - print(event) + hapd.wait_for_event('BEACON-RESP-RX') device.disconnect()