eiwd

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

commit 57ce53f1ac024eb2948e81f903928e46e60546e1
parent 000b5331944a65416d030a1f8ecf84c466fb59ee
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Mon, 13 Apr 2020 18:16:45 -0700

auto-t: Fix event order

In addition, use the conditional wait for the expected number
of known networks

Diffstat:
Mautotests/testHotspot/autoconnect_test.py | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/autotests/testHotspot/autoconnect_test.py b/autotests/testHotspot/autoconnect_test.py @@ -52,7 +52,8 @@ class Test(unittest.TestCase): condition = 'obj.state == DeviceState.disconnected' wd.wait_for_object_condition(device, condition) - self.assertEqual(len(wd.list_known_networks()), 1) + condition = 'len(obj.list_known_networks()) == 1' + wd.wait_for_object_condition(wd, condition) condition = 'obj.scanning' wd.wait_for_object_condition(device, condition) @@ -74,9 +75,6 @@ class Test(unittest.TestCase): testutil.test_ifaces_connected(device.name, hapd_hotspot.ifname) os.remove('/var/lib/iwd/hotspot/autoconnect.conf') - IWD.copy_to_storage('ssidWPA2-1.psk') - - self.assertEqual(len(wd.list_known_networks()), 1) # # make sure removal of hotspot conf file resulted in disconnect @@ -84,6 +82,11 @@ class Test(unittest.TestCase): condition = 'obj.state == DeviceState.disconnected' wd.wait_for_object_condition(device, condition) + IWD.copy_to_storage('ssidWPA2-1.psk') + + condition = 'len(obj.list_known_networks()) == 1' + wd.wait_for_object_condition(wd, condition) + condition = 'obj.scanning' wd.wait_for_object_condition(device, condition)