summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2016-08-26 23:36:35 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2016-08-26 23:36:35 +0800
commitf07e5d32ff6ca13cc56029215a54059067d860b1 (patch)
treec9ed1939f98e176dc89fa1634b11c6947281af3d
parent09edc7f6fcaf627eee88ab4447c749c55ee2100c (diff)
downloadtest-definitions-sched-f07e5d32ff6ca13cc56029215a54059067d860b1.tar.gz
android/multinode-target.yaml: get ip address via ifconfig
nougat does not have dhcp.eth0.ipaddress property set now Change-Id: I689b5b21091c83a08af1e03035be7fc18747ea8e Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--android/multinode-target.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/multinode-target.yaml b/android/multinode-target.yaml
index f42f5d4..f8d0beb 100644
--- a/android/multinode-target.yaml
+++ b/android/multinode-target.yaml
@@ -34,6 +34,11 @@ run:
- getprop
- SERIALNO=$(getprop ro.serialno)
- IPADDR=$(getprop dhcp.eth0.ipaddress)
+ - if [ -z "${IPADDR}" ]; then
+ - IPADDR=$(ifconfig eth0|grep "inet addr:")
+ - IPADDR=${IPADDR#*:}
+ - IPADDR=${IPADDR%% *}
+ - fi
- if [ $ADB_LINK != "ETH" ] && [ ! -z $SERIALNO ]
- then
- IPADDR=$SERIALNO