From: Jiri Pirko Date: Mon, 28 Jan 2019 12:02:12 +0000 (+0000) Subject: selftests: net: forwarding: change devlink resource support checking X-Git-Tag: v5.4-rc1~1543^2~408^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f64bcb62f3399fb77792f35d9bfa55dcebd9e43;p=platform%2Fkernel%2Flinux-rpi.git selftests: net: forwarding: change devlink resource support checking As for the others, check help message output to find out if devlink supports "resource" object. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller --- diff --git a/tools/testing/selftests/net/forwarding/devlink_lib.sh b/tools/testing/selftests/net/forwarding/devlink_lib.sh index 5ab1e5f..57cf891 100644 --- a/tools/testing/selftests/net/forwarding/devlink_lib.sh +++ b/tools/testing/selftests/net/forwarding/devlink_lib.sh @@ -32,7 +32,7 @@ DEVLINK_VIDDID=$(lspci -s $(echo $DEVLINK_DEV | cut -d"/" -f2) \ ############################################################################## # Sanity checks -devlink -j resource show "$DEVLINK_DEV" &> /dev/null +devlink help 2>&1 | grep resource &> /dev/null if [ $? -ne 0 ]; then echo "SKIP: iproute2 too old, missing devlink resource support" exit 1