Re: [PATCH net-next v2] selftests: fib_tests: use per-test return value in subtests

From
Ido Schimmel <idosch@nvidia.com>
Date
2026-09-30 14:09:00
Also in
linux-kselftest, lkml
Reply to
Hangbin Liu, 2026-09-30
On Wed, Sep 30, 2026 at 10:06:24AM +0800, Hangbin Liu wrote:
From: Hangbin Liu <redacted>

fib_tests mixes use of $ret for both per-test return value and global exit
code. If an earlier subtest fails and a later function sets ret=0, the
script will exit with status 0 even though [FAIL] lines were printed.

Use RET as the per-test return value, as already defined in lib.sh. The
exit code ret will only be set in log_test().

Signed-off-by: Hangbin Liu <redacted>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Thread (3 messages) 3 messages, 3 authors, last reply 2026-10-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help