3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00
iwd/autotests/testHiddenNetworks
James Prestwood 2bd2462968 auto-t: fix hidden network test
This test was never 100% reliable, and after the test-runner re-write
it became extremely unreliable. The issue came down to the very common
block of code thats present in many tests where we wait for obj.scanning
then not obj.scanning. This is fine when a dbus scan() is explicitly
done before, otherwise it could lead to problems. Without a dbus scan
explicitly called we are assuming a periodic scan will happen. If it
already happen the initial wait for obj.scanning will never return and
time out.

This probably needs to be changed in several tests, but for this specific
case we can remove the waits completely. Since
check_autoconnect_hidden_network has a 30 second wait on
DeviceState.connected this will ultimately time out if anything goes
wrong. There isn't any great reason to wait for scanning (for this test
specifically).

A minor style change was also made when initializing IWD. The values
passed in this test are now the default, so no arguments need to be
passed.
2020-09-10 17:59:49 -05:00
..
connect_after_hidden_connect_test.py auto-t: fix hidden network test 2020-09-10 17:59:49 -05:00
exceptions_test.py auto-t: Rename setting Autoconnect to AutoConnect 2019-10-24 13:04:53 -05:00
hw.conf auto-t: Validate Connect after ConnectHiddenNetwork 2020-06-09 21:58:52 -05:00
main.conf treewide: Use CamelCase for [Scan] settings 2019-10-24 15:58:08 -05:00
open_network_test.py auto-t: Rename setting Autoconnect to AutoConnect 2019-10-24 13:04:53 -05:00
ssidAlreadyKnown.open auto-t: add test for the hidden networks 2018-07-11 17:23:31 -05:00
ssidHiddenOpen.conf auto-t: add test for the hidden networks 2018-07-11 17:23:31 -05:00
ssidHiddenWPA.conf auto-t: add test for the hidden networks 2018-07-11 17:23:31 -05:00
ssidOpen.conf auto-t: add test for the hidden networks 2018-07-11 17:23:31 -05:00
ssidOverlap1.conf auto-t: add test for the hidden networks 2018-07-11 17:23:31 -05:00
ssidOverlap2.conf auto-t: add test for the hidden networks 2018-07-11 17:23:31 -05:00
ssidSomeHidden.conf auto-t: Validate Connect after ConnectHiddenNetwork 2020-06-09 21:58:52 -05:00
validation.py auto-t: fix hidden network test 2020-09-10 17:59:49 -05:00
wpa_network_test.py auto-t: Rename setting Autoconnect to AutoConnect 2019-10-24 13:04:53 -05:00