mirror_ubuntu-kernels/tools/testing/selftests/net/lib/py
Jakub Kicinski 8b8fe28015 selftests: drv-net: try to check if port is in use
We use random ports for communication. As Willem predicted
this leads to occasional failures. Try to check if port is
already in use by opening a socket and binding to that port.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20240626012456.2326192-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-06-26 19:06:03 -07:00
..
__init__.py selftests: drv-net: construct environment for running tests which require an endpoint 2024-04-23 10:13:56 -07:00
consts.py selftests: net: add scaffolding for Netlink tests in Python 2024-04-08 11:40:41 +01:00
ksft.py selftests: drv-net-hw: add test for memory allocation failures with page pool 2024-04-30 08:15:32 -07:00
netns.py selftests: drv-net: construct environment for running tests which require an endpoint 2024-04-23 10:13:56 -07:00
nsim.py net: selftest: add test for netdev netlink queue-get API 2024-05-08 18:59:47 -07:00
utils.py selftests: drv-net: try to check if port is in use 2024-06-26 19:06:03 -07:00
ynl.py selftests: net: add scaffolding for Netlink tests in Python 2024-04-08 11:40:41 +01:00