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:27:26 +0000 (18:27 +0100)
commit1151161dd029a7d736ffffa356a837441b47e515
treec17014be54141304e9c58410e7213130c8a9e704
parent2e1939396c77090d9be8f44a66fc7055acd122ec
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