瀏覽代碼

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 <daniel.diaz@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Daniel Díaz 8 年之前
父節點
當前提交
64cfcaed7b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/testing/selftests/net/netdevice.sh

+ 1 - 1
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