selftests/bpf: Fix test_progs's parsing of test numbers
authorAndrii Nakryiko <andriin@fb.com>
Sat, 14 Mar 2020 01:39:31 +0000 (18:39 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 17 Mar 2020 18:30:46 +0000 (19:30 +0100)
commitfc32490bff855a539d253c8a52c5a1ba51d1325a
tree5776c7a29cbec9405fbde8d5cba00412fce235e4
parent94c2f50b61258381abcd3a33fd5f2bc87e26df11
selftests/bpf: Fix test_progs's parsing of test numbers

When specifying disjoint set of tests, test_progs doesn't set skipped test's
array elements to false. This leads to spurious execution of tests that should
have been skipped. Fix it by explicitly initializing them to false.

Fixes: 3a516a0a3a7b ("selftests/bpf: add sub-tests support for test_progs")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200314013932.4035712-2-andriin@fb.com
tools/testing/selftests/bpf/test_progs.c