]> 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)
commit0514caa6b3d31f2e1dd8dd75366f6c0fe91b18c1
treec800f3725edf72696c0dcc8e39f19a965cbaf4c3
parent6e431f9db4d109581a131691ae758d57cd41ab98
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