summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/exec
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2026-10-14 16:01:35 -0400
committerKees Cook <kees@kernel.org>2026-10-14 21:34:01 -0700
commitb36b990c50b1f581b9a7f35ae256f5542415fa69 (patch)
tree395e4489db00d9e84a004f7a8fd7b56e884574d4 /tools/testing/selftests/exec
parentdf2908090cda368b01ff43709f51890076c56157 (diff)
selftests/exec: report the skipped binfmt_misc_bpf test on stderr
The exec Makefile announces that binfmt_misc_bpf is skipped with $(info), which writes to standard output whenever the Makefile is parsed. The selftests install target appends the standard output of "make -s emit_tests" to kselftest-list.txt, so on systems without the BPF toolchain the runlist gains a line that is not a test entry: exec selftests: skipping binfmt_misc_bpf, needs clang, bpftool, ... run_kselftest.sh and CI systems that parse the runlist then treat it as a malformed test entry. Use $(warning) so that the notice still appears in build logs but goes to standard error. Fixes: 277d787feb2e ("selftests/exec: add binfmt_misc bpf-backed handler test") Signed-off-by: Sasha Levin <sashal@kernel.org> Link: https://patch.msgid.link/20261014200135.1364053-1-sashal@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'tools/testing/selftests/exec')
-rw-r--r--tools/testing/selftests/exec/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile
index b640af8f02b5..bb10d9523e7f 100644
--- a/tools/testing/selftests/exec/Makefile
+++ b/tools/testing/selftests/exec/Makefile
@@ -63,7 +63,7 @@ TEST_GEN_FILES += bpf_interp.bpf.o nix_origin.bpf.o transparent.bpf.o
TEST_GEN_FILES += loader.bpf.o interp_bind.bpf.o
TEST_GEN_FILES += binfmt_bpf_interp binfmt_bpf_app binfmt_bind_interp
else
-$(info exec selftests: skipping binfmt_misc_bpf, needs clang, bpftool, vmlinux BTF and libbpf)
+$(warning exec selftests: skipping binfmt_misc_bpf, needs clang, bpftool, vmlinux BTF and libbpf)
endif
EXTRA_CLEAN := $(OUTPUT)/subdir.moved $(OUTPUT)/execveat.moved $(OUTPUT)/xxxxx* \