Skip to content

Commit 0759d15

Browse files
kevinGCgregkh
authored andcommitted
selftests/net: have gro.sh -t return a correct exit code
[ 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 <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent b3c8449 commit 0759d15

File tree

1 file changed

+2
-1
lines changed
  • tools/testing/selftests/net

1 file changed

+2
-1
lines changed

tools/testing/selftests/net/gro.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,6 @@ trap cleanup EXIT
9595
if [[ "${test}" == "all" ]]; then
9696
run_all_tests
9797
else
98-
run_test "${proto}" "${test}"
98+
exit_code=$(run_test "${proto}" "${test}")
99+
exit $exit_code
99100
fi;

0 commit comments

Comments
 (0)