提交 552ec3d9 编写于 作者: S Shalom Toledo 提交者: David S. Miller

selftests: devlink_lib: Check devlink info command is supported

Sanity check for devlink info command.
Signed-off-by: NShalom Toledo <shalomt@mellanox.com>
Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6697b51e
......@@ -35,6 +35,12 @@ if [ $? -ne 0 ]; then
exit 1
fi
devlink dev help 2>&1 | grep info &> /dev/null
if [ $? -ne 0 ]; then
echo "SKIP: iproute2 too old, missing devlink dev info support"
exit 1
fi
##############################################################################
# Devlink helpers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册