summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJian Wang <jianjian.wang1@gmail.com>2018-06-15 03:22:17 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-06-15 03:23:01 +0200
commit36ffdbc0a2d9f7280e49dbe5ea53c289ad112a8c (patch)
tree2c1faa35291d25eee87863f6a5b2971367f3984c
parent902196a56d4dee43c4a1702839b5272621908c6c (diff)
downloadop-kernel-dev-36ffdbc0a2d9f7280e49dbe5ea53c289ad112a8c.zip
op-kernel-dev-36ffdbc0a2d9f7280e49dbe5ea53c289ad112a8c.tar.gz
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>
-rwxr-xr-xtools/testing/selftests/bpf/test_tunnel.sh2
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 aeb2901..c4b5fbb 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
OpenPOWER on IntegriCloud