]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:26:15 +0000 (18:26 +0100)
commit242793c7ef2fe941a42702d37dbc2591979bc32d
tree6a3f51dfe57725e6355b9614bae28a5556369e9f
parent5fc06b706432285562023efa5e1134a4f0a12189
selftests: fix the return value for UDP GRO test

[ Upstream commit 3503ee6c0bec5f173d606359e6384a5ef85492fb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/udpgro.sh