From: Daniel Díaz Date: Fri, 7 Jul 2017 15:27:06 +0000 (-0500) Subject: selftests: net: More graceful finding of `ip'. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=64cfcaed7b25f69d8b7a091a23961f50c6788a66;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git selftests: net: More graceful finding of `ip'. The ip tool might be provided by another package (such as Busybox), not necessarily implementing the -Version switch. Trying an actual usage (`ip link show') might be a better test that would work with all implementations of `ip'. Signed-off-by: Daniel Díaz Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/net/netdevice.sh b/tools/testing/selftests/net/netdevice.sh index 4e00568d70c2..90cb903c3381 100755 --- a/tools/testing/selftests/net/netdevice.sh +++ b/tools/testing/selftests/net/netdevice.sh @@ -178,7 +178,7 @@ if [ "$(id -u)" -ne 0 ];then exit 0 fi -ip -Version 2>/dev/null >/dev/null +ip link show 2>/dev/null >/dev/null if [ $? -ne 0 ];then echo "SKIP: Could not run test without the ip tool" exit 0