]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: net: lib: Move checks from forwarding/lib.sh here
authorPetr Machata <petrm@nvidia.com>
Thu, 14 Nov 2024 14:09:57 +0000 (15:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 16 Nov 2024 00:39:19 +0000 (16:39 -0800)
commitaf76b4431818cf7a73cf0ec19465ad3b01cdb159
treead333c1392f235d35f13fba654abfb819bd1b91a
parent601d9d70a40a8ccf93f41a153dd4c9aa1db60d57
selftests: net: lib: Move checks from forwarding/lib.sh here

For logging to be useful, something has to set RET and retmsg by calling
ret_set_ksft_status(). There is a suite of functions to that end in
forwarding/lib: check_err, check_fail et.al. Move them to net/lib.sh so
that every net test can use them.

Existing lib.sh users might be using these same names for their functions.
However lib.sh is always sourced near the top of the file (checked), and
whatever new definitions will simply override the ones provided by lib.sh.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://patch.msgid.link/f488a00dc85b8e0c1f3c71476b32b21b5189a847.1731589511.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/lib.sh
tools/testing/selftests/net/lib.sh