]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fix the return value for UDP GRO test
authorPo-Hsu Lin <po-hsu.lin@canonical.com>
Tue, 5 Jan 2021 10:17:40 +0000 (18:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jan 2021 00:59:21 +0000 (16:59 -0800)
commitfc5ee25d71bbcfc9d2fc28c5c2591c574124b246
tree6a1326918cd4644089cc2dd3339653a3b53a0fa5
parentdc3cea25c4e1198c0f694d5e3be2b68673585add
selftests: fix the return value for UDP GRO test

The udpgro.sh will always return 0 (unless the bpf selftest was not
build first) even if there are some failed sub test-cases.

Therefore the kselftest framework will report this case is OK.

Check and return the exit status of each test to make it easier to
spot real failures.

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/udpgro.sh