Skip to content

Commit 36ffdbc

Browse files
capsl0ckerborkmann
authored andcommitted
bpf, selftest: check tunnel type more accurately
Grep tunnel type directly to make sure 'ip' command supports it. Signed-off-by: Jian Wang <[email protected]> Acked-by: Yonghong Song <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent 902196a commit 36ffdbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/test_tunnel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ cleanup_exit()
668668

669669
check()
670670
{
671-
ip link help $1 2>&1 | grep -q "^Usage:"
671+
ip link help 2>&1 | grep -q "\s$1\s"
672672
if [ $? -ne 0 ];then
673673
echo "SKIP $1: iproute2 not support"
674674
cleanup

0 commit comments

Comments
 (0)