summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorShalom Toledo <shalomt@mellanox.com>2020-02-27 08:50:15 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-27 20:10:15 +0100
commit552ec3d9d2aa81681ac27d510bd11d29a5522840 (patch)
tree60b3b7232898465e7dee54222ba3b91d06b1540e /tools
parentselftests: mlxsw: Add shared buffer configuration test (diff)
downloadlinux-552ec3d9d2aa81681ac27d510bd11d29a5522840.tar.xz
linux-552ec3d9d2aa81681ac27d510bd11d29a5522840.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/net/forwarding/devlink_lib.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/devlink_lib.sh b/tools/testing/selftests/net/forwarding/devlink_lib.sh
index 24798ae846de..07e360e2f275 100644
--- a/tools/testing/selftests/net/forwarding/devlink_lib.sh
+++ b/tools/testing/selftests/net/forwarding/devlink_lib.sh
@@ -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