selftests/bpf: ns_current_pid_tgid: Use test_progs's ns_ feature
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Wed, 19 Feb 2025 14:53:03 +0000 (15:53 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Feb 2025 17:46:02 +0000 (09:46 -0800)
commit157feaaf18cec6a6eeb71dba334e214834a21030
tree7363bdbf204f62f8abcf63c2d64b47d08af41485
parent207cd7578ad16dc033ab55c13ae23d27a67fc0f5
selftests/bpf: ns_current_pid_tgid: Use test_progs's ns_ feature

Two subtests use the test_in_netns() function to run the test in a
dedicated network namespace. This can now be done directly through the
test_progs framework with a test name starting with 'ns_'.

Replace the use of test_in_netns() by test_ns_* calls.

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20250219-b4-tc_links-v2-4-14504db136b7@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c