diff options
author | Shalom Toledo <shalomt@mellanox.com> | 2020-02-27 08:50:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-27 20:10:15 +0100 |
commit | 552ec3d9d2aa81681ac27d510bd11d29a5522840 (patch) | |
tree | 60b3b7232898465e7dee54222ba3b91d06b1540e /tools | |
parent | selftests: mlxsw: Add shared buffer configuration test (diff) | |
download | linux-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.sh | 6 |
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 |