OSDN Git Service

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)
commite12cd158c8a45b3926cc2f42151384a2d7fdcec3
treec800f3725edf72696c0dcc8e39f19a965cbaf4c3
parentb623181520404ef48f7421333561bd294c6c6b11
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