iwd/autotests/util
James Prestwood 1ecadc3952 test-runner: fix UML blocking on wait_for_socket/service
In UML if any process dies while test-runner is waiting for the DBus
service or some socket to be available it will block forever. This
is due to the way the non_block_wait works.

Its not optimal but it essentially polls over some input function
until the conditions are met. And, depending on the input function,
this can cause UML to hang since it never has a chance to go idle
and advance the time clock.

This can be fixed, at least for services/sockets, by sleeping in
the input function allowing time to pass. This will then allow
test-runner to bail out with an exception.

This patch adds a new wait_for_service function which handles this
automatically, and wait_for_socket was refactored to behave
similarly.
2022-06-24 18:11:10 -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: correctly import Mapping from collections 2022-06-01 11:01:50 -05:00
hlrauc.py auto-t: hlrauc.py: remove unix socket on cleanup 2021-02-26 10:07:17 -06:00
hostapd.py auto-t: fix eapol_reauth utility 2022-05-26 11:24:52 -05:00
hwsim.py auto-t: correctly import Mapping from collections 2022-06-01 11:01:50 -05:00
iwd.py test-runner: fix UML blocking on wait_for_socket/service 2022-06-24 18:11:10 -05:00
ofono.py auto-t: ofono.py: use non_block_wait 2021-08-13 11:16:19 -05:00
testutil.py auto-t: In testNetconfig verify routes created 2022-06-22 15:57:22 -05:00
wpas.py auto-t: allow skipping tests is wpa_supplicant is not found 2022-06-02 16:47:02 -05:00