Skip to content

Commit

Permalink
selftests/net: have gro.sh -t return a correct exit code
Browse files Browse the repository at this point in the history
[ Upstream commit 784e6ab ]

Modify gro.sh to return a useful exit code when the -t flag is used. It
formerly returned 0 no matter what.

Tested: Ran `gro.sh -t large` and verified that test failures return 1.
Signed-off-by: Kevin Krakauer <krakauer@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250226192725.621969-2-krakauer@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Kevin Krakauer authored and Greg Kroah-Hartman committed Jun 4, 2025
1 parent 866ae33 commit 1964a69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/testing/selftests/net/gro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,6 @@ trap cleanup EXIT
if [[ "${test}" == "all" ]]; then
run_all_tests
else
run_test "${proto}" "${test}"
exit_code=$(run_test "${proto}" "${test}")
exit $exit_code
fi;

0 comments on commit 1964a69

Please sign in to comment.