]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit3503ee6c0bec5f173d606359e6384a5ef85492fb
tree6a1326918cd4644089cc2dd3339653a3b53a0fa5
parent445c6198fe7be03b7d38e66fe8d4b3187bc251d4
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