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)
commitcff908463d91a6b2fb8c8ab6c41d9c308c29fd42
tree8410dd0da0f87b884a926aaa55b54c4c0ce85181
parentb910eaaaa4b89976ef02e5d6448f3f73dc671d91
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