diff options
| author | Ricardo B. Marlière <rbm@suse.com> | 2025-08-28 15:48:30 -0300 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2025-09-03 16:44:22 -0700 |
| commit | 2a912258c90e895363c0ffc0be8a47f112ab67b7 (patch) | |
| tree | 8095e8e72e40077f6f2d45b67a34b3d51b2419c5 /tools/testing/selftests | |
| parent | bpf: Replace kvfree with kfree for kzalloc memory (diff) | |
| download | linux-2a912258c90e895363c0ffc0be8a47f112ab67b7.tar.gz linux-2a912258c90e895363c0ffc0be8a47f112ab67b7.zip | |
selftests/bpf: Upon failures, exit with code 1 in test_xsk.sh
Currently, even if some subtests fails, the end result will still yield
"ok 1 selftests: bpf: test_xsk.sh". Fix it by exiting with 1 if there are
any failures.
Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20250828-selftests-bpf-test_xsk_ret-v1-1-e6656c01f397@suse.com
Diffstat (limited to 'tools/testing/selftests')
| -rwxr-xr-x | tools/testing/selftests/bpf/test_xsk.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/test_xsk.sh b/tools/testing/selftests/bpf/test_xsk.sh index 65aafe0003db..62db060298a4 100755 --- a/tools/testing/selftests/bpf/test_xsk.sh +++ b/tools/testing/selftests/bpf/test_xsk.sh @@ -241,4 +241,6 @@ done if [ $failures -eq 0 ]; then echo "All tests successful!" +else + exit 1 fi |
