summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/.gitignore
diff options
context:
space:
mode:
authorJoe Stringer <joe@cilium.io>2021-06-08 04:57:56 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2021-06-08 23:04:35 +0300
commit380afe7208966ab59e5215c9daab3f6b06193d8c (patch)
tree09e047c0d3e859eda48cd3eb9ec2ba2146c8ea92 /tools/testing/selftests/bpf/.gitignore
parentedc0571c5f67c7e24958149a8ec6a904ca84840b (diff)
downloadlinux-380afe7208966ab59e5215c9daab3f6b06193d8c.tar.xz
selftests, bpf: Make docs tests fail more reliably
Previously, if rst2man caught errors, then these would be ignored and the output file would be written anyway. This would allow developers to introduce regressions in the docs comments in the BPF headers. Additionally, even if you instruct rst2man to fail out, it will still write out to the destination target file, so if you ran the tests twice in a row it would always pass. Use a temporary file for the initial run to ensure that if rst2man fails out under "--strict" mode, subsequent runs will not automatically pass. Tested via ./tools/testing/selftests/bpf/test_doc_build.sh Signed-off-by: Joe Stringer <joe@cilium.io> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/bpf/20210608015756.340385-1-joe@cilium.io
Diffstat (limited to 'tools/testing/selftests/bpf/.gitignore')
-rw-r--r--tools/testing/selftests/bpf/.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore
index a18f57044014..eae6fc7d3ed8 100644
--- a/tools/testing/selftests/bpf/.gitignore
+++ b/tools/testing/selftests/bpf/.gitignore
@@ -37,5 +37,6 @@ test_cpp
/runqslower
/bench
*.ko
+*.tmp
xdpxceiver
xdp_redirect_multi