![]() 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. |
||
---|---|---|
.. | ||
config.py | ||
ead.py | ||
hlrauc.py | ||
hostapd.py | ||
hwsim.py | ||
iwd.py | ||
ofono.py | ||
testutil.py | ||
wpas.py |