Commit 552ec3d9 authored by Shalom Toledo's avatar Shalom Toledo Committed by David S. Miller

selftests: devlink_lib: Check devlink info command is supported

Sanity check for devlink info command.
Signed-off-by: default avatarShalom Toledo <shalomt@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment