]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests: net: add more info to error in bpf_offload
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 Nov 2024 20:12:36 +0000 (12:12 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 02:51:41 +0000 (18:51 -0800)
commit920efe3e13f7eb5711d4ad8ecc0cced16b1a84cf
tree3ef9c40a00d8e75e9bf52018af7eabe57592d76d
parent16a04d043baa963d9f192ea5cae3556d1859974c
selftests: net: add more info to error in bpf_offload

bpf_offload caught a spurious warning in TC recently, but the error
message did not provide enough information to know what the problem
is:

  FAIL: Found 'netdevsim' in command output, leaky extack?

Add the extack to the output:

  FAIL: Unexpected command output, leaky extack? ('netdevsim', 'Warning: Filter with specified priority/protocol not found.')

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/bpf_offload.py