]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Correctly display subtest skip status
authorYucong Sun <fallentree@fb.com>
Tue, 17 Aug 2021 04:47:30 +0000 (21:47 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 17 Aug 2021 18:16:53 +0000 (11:16 -0700)
commit17ec7459c7b1037d765759ebd9b14b987bef6e0a
tree6ebf0879a3b699f79ee8979f654a69013e95cea1
parentff33a10174b44ba9df65ee5aea6ab29f7413ed1d
selftests/bpf: Correctly display subtest skip status

In skip_account(), test->skip_cnt is set to 0 at the end, this makes next print
statement never display SKIP status for the subtest. This patch moves the
accounting logic after the print statement, fixing the issue.

This patch also added SKIP status display for normal tests.

Signed-off-by: Yucong Sun <fallentree@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210817044732.3263066-3-fallentree@fb.com
tools/testing/selftests/bpf/test_progs.c