diff options
author | Domenico Cerasuolo <dceras@meta.com> | 2022-11-09 10:40:39 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-11-09 21:00:22 -0800 |
commit | fd74b79df0d1c9506583d0b52e3d7562a38ac34a (patch) | |
tree | 5e08e4230555559ca567982ca834931c84decb56 /tools/lib/bpf/hashmap.h | |
parent | 15157d2e008dd6ac72e0d03281acf22007324b8d (diff) | |
download | linux-fd74b79df0d1c9506583d0b52e3d7562a38ac34a.tar.gz linux-fd74b79df0d1c9506583d0b52e3d7562a38ac34a.tar.bz2 linux-fd74b79df0d1c9506583d0b52e3d7562a38ac34a.zip |
selftests: Fix test group SKIPPED result
When showing the result of a test group, if one
of the subtests was skipped, while still having
passing subtests, the group result was marked as
SKIP. E.g.:
223/1 usdt/basic:SKIP
223/2 usdt/multispec:OK
223/3 usdt/urand_auto_attach:OK
223/4 usdt/urand_pid_attach:OK
223 usdt:SKIP
The test result of usdt in the example above
should be OK instead of SKIP, because the test
group did have passing tests and it would be
considered in "normal" state.
With this change, only if all of the subtests
were skipped, the group test is marked as SKIP.
When only some of the subtests are skipped, a
more detailed result is given, stating how
many of the subtests were skipped. E.g:
223/1 usdt/basic:SKIP
223/2 usdt/multispec:OK
223/3 usdt/urand_auto_attach:OK
223/4 usdt/urand_pid_attach:OK
223 usdt:OK (SKIP: 1/4)
Signed-off-by: Domenico Cerasuolo <dceras@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20221109184039.3514033-1-cerasuolodomenico@gmail.com
Diffstat (limited to 'tools/lib/bpf/hashmap.h')
0 files changed, 0 insertions, 0 deletions