linux/tools/testing/selftests/net/lib/py
Jakub Kicinski 4b1639cac0 selftests: net: py: handle interrupt during cleanup
Following up on the old discussion [1]. Let the BaseExceptions out of
defer()'ed cleanup. And handle it in the main loop. This allows us to
exit the tests if user hit Ctrl-C during defer().

Link: https://lore.kernel.org/20251119063228.3adfd743@kernel.org # [1]
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20251128004846.2602687-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-12-01 12:01:29 -08:00
..
__init__.py selftests: net: py: add test variants 2025-11-20 18:19:29 -08:00
consts.py selftests: net: add scaffolding for Netlink tests in Python 2024-04-08 11:40:41 +01:00
ksft.py selftests: net: py: handle interrupt during cleanup 2025-12-01 12:01:29 -08:00
netns.py selftests: net: Add python context manager for netns entering 2025-02-21 15:28:03 -08:00
nsim.py selftests: net: py: read ip link info about remote dev 2025-11-20 18:19:29 -08:00
utils.py selftests: net: py: support ksft ready without wait 2025-11-20 18:19:29 -08:00
ynl.py selftests: drv-net: base device access API test 2025-09-30 15:17:21 +02:00