diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2015-11-20 22:31:21 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2015-11-20 22:31:21 +0800 |
commit | 45eedb61d1e64229a92a005d32eaa6ea31424d55 (patch) | |
tree | a2634e58e43d1ba20304fcef63a4ecba5e06bb1f | |
parent | 9da579956c23b52e095dccbd536d0298573565ab (diff) |
change to use ping to check if the dhcpcd_eth0 is started after restart adbd
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | lava-android-benchmark-target.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lava-android-benchmark-target.yaml b/lava-android-benchmark-target.yaml index bc5da00..5ab1a26 100644 --- a/lava-android-benchmark-target.yaml +++ b/lava-android-benchmark-target.yaml @@ -26,7 +26,9 @@ run: - lava-test-case step4-set-adb-root --shell setprop service.adb.root 1 - lava-test-case step7-stop-adbd --shell stop adbd - lava-test-case step8-start-adbd --shell start adbd - - sleep 30 + - while ! LC_ALL=C ping -W1 -c1 $LAVA_SERVER_IP ; do + - sleep 1 + - done - IPADDR=$(getprop dhcp.eth0.ipaddress) - if [ -z $IPADDR ]; then netcfg eth0 up; netcfg eth0 dhcp; IPADDR=$(getprop dhcp.eth0.ipaddress); fi - lava-test-case step6-send-ip --shell lava-send $TEST_NAME-send-ip ipaddr=$IPADDR |