]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Configure dir paths via env in test_bpftool_synctypes.py
authorQuentin Monnet <quentin@isovalent.com>
Mon, 15 Nov 2021 22:58:44 +0000 (22:58 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Nov 2021 12:56:22 +0000 (13:56 +0100)
commit5bfa89e2ad33a0505163f1d79e55dff486f404a2
treec800f3725edf72696c0dcc8e39f19a965cbaf4c3
parente27ef12893a272b42cacd2fc5a5290793d3c4210
selftests/bpf: Configure dir paths via env in test_bpftool_synctypes.py

Script test_bpftool_synctypes.py parses a number of files in the bpftool
directory (or even elsewhere in the repo) to make sure that the list of
types or options in those different files are consistent. Instead of
having fixed paths, let's make the directories configurable through
environment variable. This should make easier in the future to run the
script in a different setup, for example on an out-of-tree bpftool
mirror with a different layout.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211115225844.33943-4-quentin@isovalent.com
tools/testing/selftests/bpf/test_bpftool_synctypes.py