]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Set test path for token/obj_priv_implicit_token_envvar
authorIhor Solodrai <ihor.solodrai@pm.me>
Fri, 15 Nov 2024 00:38:55 +0000 (00:38 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 15 Nov 2024 03:24:28 +0000 (19:24 -0800)
commitf01750aecdfb8bfb02842f60af3d805a3ae7267a
treed1cfcf55783415bd54e61f54c8e7a13f1715baf1
parent379d5ee624eda6a897d9e1f7f88c68ea482bd5fa
selftests/bpf: Set test path for token/obj_priv_implicit_token_envvar

token/obj_priv_implicit_token_envvar test may fail in an environment
where the process executing tests can not write to the root path.

Example:
https://github.com/libbpf/libbpf/actions/runs/11844507007/job/33007897936

Change default path used by the test to /tmp/bpf-token-fs, and make it
runtime configurable via an environment variable.

Signed-off-by: Ihor Solodrai <ihor.solodrai@pm.me>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241115003853.864397-1-ihor.solodrai@pm.me
tools/testing/selftests/bpf/prog_tests/token.c