3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

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.
This commit is contained in:
James Prestwood 2022-10-06 10:40:40 -07:00 committed by Denis Kenzior
parent 2acbe26684
commit 0c8f06441e
5 changed files with 6 additions and 20 deletions

View File

@ -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

View File

@ -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):

View File

@ -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()

View File

@ -1,4 +0,0 @@
ssid=ssid_hidden_1
hw_mode=g
channel=1
ignore_broadcast_ssid=1

View File

@ -1,3 +0,0 @@
[Settings]
AutoConnect=false
Hidden=true