]> Gentwo Git Trees - linux/.git/commit
selftests: net: py: handle interrupt during cleanup
authorJakub Kicinski <kuba@kernel.org>
Fri, 28 Nov 2025 00:48:46 +0000 (16:48 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Dec 2025 20:01:29 +0000 (12:01 -0800)
commit4b1639cac04cbc0d19321fc26476ea4f89ff4c8a
treeac6468a1e07911045016300540f39a58a48fecf4
parent40d5ce4af2067aab275b8aef690e77455da5314a
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
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>
tools/testing/selftests/net/lib/py/ksft.py