Skip to content

Commit 784e6ab

Browse files
kevinGCkuba-moo
authored andcommitted
selftests/net: have gro.sh -t return a correct exit code
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]>
1 parent 52478f6 commit 784e6ab

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
@@ -100,5 +100,6 @@ trap cleanup EXIT
100100
if [[ "${test}" == "all" ]]; then
101101
run_all_tests
102102
else
103-
run_test "${proto}" "${test}"
103+
exit_code=$(run_test "${proto}" "${test}")
104+
exit $exit_code
104105
fi;

0 commit comments

Comments
 (0)