Browse Source

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>
Jian Wang 7 years ago
parent
commit
36ffdbc0a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/testing/selftests/bpf/test_tunnel.sh

+ 1 - 1
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