mirror of https://gitee.com/openkylin/linux.git
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:
parent
6697b51ed3
commit
552ec3d9d2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue