提交 6e74e68d 编写于 作者: M Mauro Carvalho Chehab 提交者: Jonathan Corbet

scripts: documentation-file-ref-check: fix bpf selftests path

tools/testing/selftests/bpf/test_bpftool_synctypes.py use
relative patches on the top of BPFTOOL_DIR:

	BPFTOOL_DIR = os.path.join(LINUX_ROOT, 'tools/bpf/bpftool')

Change the script to automatically convert:

	testing/selftests/bpf -> bpf/bpftool

In order to properly check the files used by such script.
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/49b765cbac6ccd22d627573154806ec9389d60f0.1634629094.git.mchehab+huawei@kernel.orgSigned-off-by: NJonathan Corbet <corbet@lwn.net>
上级 14efb275
...@@ -147,6 +147,7 @@ while (<IN>) { ...@@ -147,6 +147,7 @@ while (<IN>) {
if ($f =~ m/tools/) { if ($f =~ m/tools/) {
my $path = $f; my $path = $f;
$path =~ s,(.*)/.*,$1,; $path =~ s,(.*)/.*,$1,;
$path =~ s,testing/selftests/bpf,bpf/bpftool,;
next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref")); next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册