]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftests/bpf: Whitelist test_progs.h from .gitignore
authorDaniel Xu <dxu@dxuuu.xyz>
Wed, 16 Jun 2021 21:52:11 +0000 (14:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:59:54 +0000 (16:59 +0200)
[ Upstream commit 809ed84de8b3f2fd7b1d06efb94bf98fd318a7d7 ]

Somehow test_progs.h was being included by the existing rule:

    /test_progs*

This is bad because:

    1) test_progs.h is a checked in file
    2) grep-like tools like ripgrep[0] respect gitignore and
       test_progs.h was being hidden from searches

[0]: https://github.com/BurntSushi/ripgrep

Fixes: 74b5a5968fe8 ("selftests/bpf: Replace test_progs and test_maps w/ general rule")
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/a46f64944bf678bc652410ca6028d3450f4f7f4b.1623880296.git.dxu@dxuuu.xyz
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/.gitignore

index c0c48fdb9ac1dc54d7af1ad0ef2877b1ae93fd66..76d495fe3a1750839c37e4fa45cc03b641799f41 100644 (file)
@@ -8,6 +8,7 @@ FEATURE-DUMP.libbpf
 fixdep
 test_dev_cgroup
 /test_progs*
+!test_progs.h
 test_verifier_log
 feature
 test_sock