]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Upon failures, exit with code 1 in test_xsk.sh
authorRicardo B. Marlière <rbm@suse.com>
Thu, 28 Aug 2025 18:48:30 +0000 (15:48 -0300)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 3 Sep 2025 23:44:22 +0000 (16:44 -0700)
commit2a912258c90e895363c0ffc0be8a47f112ab67b7
tree8095e8e72e40077f6f2d45b67a34b3d51b2419c5
parente4980fa6463624cb608c0f49882e11e8d6ccd590
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
tools/testing/selftests/bpf/test_xsk.sh