eiwd

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

commit 0c8f06441e69bdb1cbe58becf53f03d4d9a8dfd6
parent 2acbe26684422794854fb58b946e11c0985b033b
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu,  6 Oct 2022 10:40:40 -0700

auto-t: speed up testScan

This test was taking about 5 minutes to run, specifically
the requested scan test. One slight optimization is to
remove the duplicate hidden network, since there is no
need for two. In addition the requested scan test was
changed so it does not periodic scan and only issues a dbus
scan.

Diffstat:
Mautotests/testScan/hw.conf | 9++++-----
Mautotests/testScan/periodic_scan_test.py | 4++--
Mautotests/testScan/requested_scan_test.py | 6------
Dautotests/testScan/ssid_hidden_1.conf | 4----
Dautotests/testScan/ssid_hidden_1.open | 3---
5 files changed, 6 insertions(+), 20 deletions(-)

diff --git a/autotests/testScan/hw.conf b/autotests/testScan/hw.conf @@ -1,10 +1,9 @@ [SETUP] -num_radios=6 +num_radios=5 start_iwd=0 [HOSTAPD] rad0=ssid_hidden_0.conf -rad1=ssid_hidden_1.conf -rad2=ssid_open.conf -rad3=ssid_8021x.conf -rad4=ssid_psk.conf +rad1=ssid_open.conf +rad2=ssid_8021x.conf +rad3=ssid_psk.conf diff --git a/autotests/testScan/periodic_scan_test.py b/autotests/testScan/periodic_scan_test.py @@ -12,7 +12,7 @@ class Test(unittest.TestCase): 'ssid_open': False, 'ssid_psk': False, 'ssid_8021x': False, - 'ssid_hidden_1': False, + 'ssid_hidden_0': False, } def set_network(self, ssid): @@ -58,7 +58,7 @@ class Test(unittest.TestCase): @classmethod def setUpClass(cls): - IWD.copy_to_storage('ssid_hidden_1.open') + IWD.copy_to_storage('ssid_hidden_0.open') @classmethod def tearDownClass(cls): diff --git a/autotests/testScan/requested_scan_test.py b/autotests/testScan/requested_scan_test.py @@ -30,12 +30,6 @@ class Test(unittest.TestCase): devices = wd.list_devices(1) self.assertIsNotNone(devices) device = devices[0] - device.autoconnect = True - - condition = 'obj.scanning' - wd.wait_for_object_condition(device, condition) - condition = 'not obj.scanning' - wd.wait_for_object_condition(device, condition) device.scan() diff --git a/autotests/testScan/ssid_hidden_1.conf b/autotests/testScan/ssid_hidden_1.conf @@ -1,4 +0,0 @@ -ssid=ssid_hidden_1 -hw_mode=g -channel=1 -ignore_broadcast_ssid=1 diff --git a/autotests/testScan/ssid_hidden_1.open b/autotests/testScan/ssid_hidden_1.open @@ -1,3 +0,0 @@ -[Settings] -AutoConnect=false -Hidden=true