]> www.infradead.org Git - users/willy/xarray.git/commit
selftests: net: ksft: avoid continue when handling results
authorJakub Kicinski <kuba@kernel.org>
Thu, 27 Jun 2024 18:55:00 +0000 (11:55 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Jun 2024 01:39:39 +0000 (18:39 -0700)
commit147997afaad0ce4835233e7fddacc9e2be7eb087
treea37a7ba1c0e02b6f94fee5518b0de592a60f92d5
parentbf7bb7b43097d8c2b8673c5ea8a6b64a1f6090b0
selftests: net: ksft: avoid continue when handling results

Exception handlers print the result and use continue
to skip the non-exception result printing. This makes
inserting common post-test code hard. Refactor to
avoid the continues and have only one ktap_result() call.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20240627185502.3069139-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/lib/py/ksft.py