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

It would be good to use the same mechanism for scheduling and dispatching
general net tests as the many forwarding tests already use. To that end,
move the logging helpers to net/lib.sh so that every net test can use them.

Existing lib.sh users might be using the name themselves. However lib.sh is
always sourced near the top of the file (checked), and whatever new
definition will simply override the one 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/a6fc083486493425b2c61185c327845b6ce3233a.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