selftests: devlink_lib: Check devlink info command is supported

Sanity check for devlink info command.

Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Shalom Toledo 2020-02-27 08:50:15 +01:00 committed by David S. Miller
parent 6697b51ed3
commit 552ec3d9d2
1 changed files with 6 additions and 0 deletions

View File

@ -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