]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Better error messages for ima_setup.sh failures
authorKP Singh <kpsingh@kernel.org>
Mon, 22 Mar 2021 17:07:20 +0000 (17:07 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Mar 2021 01:39:51 +0000 (18:39 -0700)
commit466b63d9a0ac89423a85be2007cdab175140e6ce
tree8410dd0da0f87b884a926aaa55b54c4c0ce85181
parent3d06391a831acf06ec926820f3e921327609eec6
selftests/bpf: Better error messages for ima_setup.sh failures

The current implementation uses the CHECK_FAIL macro which does not
provide useful error messages when the script fails. Use the CHECK macro
instead and provide more descriptive messages to aid debugging.

Signed-off-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210322170720.2926715-1-kpsingh@kernel.org
tools/testing/selftests/bpf/prog_tests/test_ima.c