diff options
author | Jian Wang <jianjian.wang1@gmail.com> | 2018-06-15 03:22:17 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-06-15 03:23:01 +0200 |
commit | 36ffdbc0a2d9f7280e49dbe5ea53c289ad112a8c (patch) | |
tree | 2c1faa35291d25eee87863f6a5b2971367f3984c /tools/testing/selftests/bpf/test_tunnel.sh | |
parent | 902196a56d4dee43c4a1702839b5272621908c6c (diff) |
bpf, selftest: check tunnel type more accurately
Grep tunnel type directly to make sure 'ip' command supports it.
Signed-off-by: Jian Wang <jianjian.wang1@gmail.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/test_tunnel.sh')
-rwxr-xr-x | tools/testing/selftests/bpf/test_tunnel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_tunnel.sh b/tools/testing/selftests/bpf/test_tunnel.sh index aeb2901f21f4..c4b5fbbaa760 100755 --- a/tools/testing/selftests/bpf/test_tunnel.sh +++ b/tools/testing/selftests/bpf/test_tunnel.sh @@ -668,7 +668,7 @@ cleanup_exit() check() { - ip link help $1 2>&1 | grep -q "^Usage:" + ip link help 2>&1 | grep -q "\s$1\s" if [ $? -ne 0 ];then echo "SKIP $1: iproute2 not support" cleanup |