]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: fib_nexthops: do not mark skipped tests as failed
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 20 Feb 2025 08:53:26 +0000 (08:53 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 22 Feb 2025 00:23:29 +0000 (16:23 -0800)
commit465b210fdc653086fca34914c3a633efafb83e71
tree9bd8b293727b43cbf336763c58999d7c40172e58
parent27422c373897b27e935159360bb35c4b26ecc2b1
selftests: fib_nexthops: do not mark skipped tests as failed

The current test marks all unexpected return values as failed and sets ret
to 1. If a test is skipped, the entire test also returns 1, incorrectly
indicating failure.

To fix this, add a skipped variable and set ret to 4 if it was previously
0. Otherwise, keep ret set to 1.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20250220085326.1512814-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fib_nexthops.sh