diff options
| author | Petr Machata <[email protected]> | 2025-02-14 16:18:22 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-02-18 12:06:43 +0000 |
| commit | f802f172d78b8b96dcd1832dc7c8da8ee9dcbc29 (patch) | |
| tree | fd2224d1a09fac4d6a006f0a1c6558c7e321126b /net/ipv4/tcp_input.c | |
| parent | vxlan: Join / leave MC group after remote changes (diff) | |
| download | kernel-f802f172d78b8b96dcd1832dc7c8da8ee9dcbc29.tar.gz kernel-f802f172d78b8b96dcd1832dc7c8da8ee9dcbc29.zip | |
selftests: forwarding: lib: Move require_command to net, generalize
This helper could be useful to more than just forwarding tests.
Move it upstairs and port over to log_test_skip().
Split the function into two parts: the bit that actually checks and
reports skip, which is in a new function check_command(). And a bit
that exits the test script if the check fails. This allows users
consistent checking behavior while giving an option to bail out from
a single test without bailing out of the whole script.
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Reviewed-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
