diff options
author | Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com> | 2025-03-03 09:22:50 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-03-15 11:48:26 -0700 |
commit | fcb39996a2426b5da54036002c39699426109fa2 (patch) | |
tree | e0941278db32012f67e7d96a0aea389bd25ff733 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 5d6aa606c157c94d785624aae1fd9e5df57745d7 (diff) |
selftests/bpf: test_tunnel: Add ping helpers
All tests use more or less the same ping commands as final validation.
Also test_ping()'s return value is checked with ASSERT_OK() while this
check is already done by the SYS() macro inside test_ping().
Create helpers around test_ping() and use them in the tests to avoid code
duplication.
Remove the unnecessary ASSERT_OK() from the tests.
Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250303-tunnels-v2-2-8329f38f0678@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions