3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00
iwd/autotests/util
James Prestwood 5519faecba auto-t: iwd.py: make scan_if_needed True by default
There is a common block of code in nearly every test which is incorrect,
most likely a copy-paste from long ago. It goes something like:

wd.wait_for_object_condition(device, 'not obj.scanning')
device.scan()
wd.wait_for_object_condition(device, 'not obj.scanning')

network = device.get_ordered_network("ssid")

The problem here is that sometimes the scanning property does not get
updated fast enough before device.scan() returns, meaning get_ordered_network
comes up with nothing. Some tests pass scan_if_needed=True which 'fixes'
this but ends up re-scanning after the original scan finishes.

To put this to rest scan_if_needed is now defaulted to True, and no
explicit scan should be needed.
2021-08-12 16:58:39 -05:00
..
config.py auto-t: introduce pure python test-runner re-write 2020-09-10 17:59:49 -05:00
ead.py auto-t: update utilities to use namespaces 2020-11-18 11:01:11 -06:00
hlrauc.py auto-t: hlrauc.py: remove unix socket on cleanup 2021-02-26 10:07:17 -06:00
hostapd.py auto-t: hostapd.py: add 'bssid' property 2021-08-12 15:14:07 -05:00
hwsim.py auto-t: add python wrapper for hwsim rule prefix 2021-04-05 17:47:42 -05:00
iwd.py auto-t: iwd.py: make scan_if_needed True by default 2021-08-12 16:58:39 -05:00
ofono.py auto-t: update utilities to use namespaces 2020-11-18 11:01:11 -06:00
testutil.py auto-t: testutil.py: add expect_fail flag 2021-08-12 15:14:07 -05:00
wpas.py autotest: Improve cleanup in testP2P 2021-06-14 09:02:34 -05:00