diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2015-11-19 22:48:48 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2015-11-20 14:20:16 +0800 |
commit | 22536fdb119223defe9ed5a967193cf25e186e04 (patch) | |
tree | a40289851a74e6a302f2758e26ada2e511fe2f44 | |
parent | 31282d6baba182be7fa4ce1ec95a49aee73426d3 (diff) |
Insert sleep 10 after start adbd
This is for the hikey special case on LAVA:
When adbd was restarted, the the dhcpcd_eth0 service will be
restarted automatically, if we send the target ip before the dhcpcd_eth0 restarted,
the adb connection on host will hang after the dhcpcd_eth0 restarted.
So here insert sleep 10 after the start adbd command, to wait for the dhcpcd_eth0 started.
and send the ip address to host side after that.
Change-Id: I71a3402582085e2bd63f75d1bcec45533eb83fb5
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | lava-android-benchmark-target.yaml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lava-android-benchmark-target.yaml b/lava-android-benchmark-target.yaml index d76857d..ee542ee 100644 --- a/lava-android-benchmark-target.yaml +++ b/lava-android-benchmark-target.yaml @@ -21,12 +21,16 @@ params: run: steps: - lava-test-case step1-cat-build-info --shell cat /system/build.prop - - IPADDR=$(getprop dhcp.eth0.ipaddress) - - if [ -z $IPADDR ]; then netcfg eth0 up; netcfg eth0 dhcp; IPADDR=$(getprop dhcp.eth0.ipaddress); fi - lava-test-case step2-get-adb --shell getprop service.adb.tcp.port - lava-test-case step3-set-adb --shell setprop service.adb.tcp.port 5555 - - lava-test-case step3-set-adb --shell setprop service.adb.root 1 - - lava-test-case step4-stop-adbd --shell stop adbd - - lava-test-case step5-start-adbd --shell start adbd + - lava-test-case step4-set-adb-root --shell setprop service.adb.root 1 + - lava-test-case step5-capture-kmsg-levels --shell 'cat /proc/sys/kernel/printk > /data/local/tmp/kmsg_levels' + - lava-test-case step6-disable-kmsg --shell echo '1 1 1 1' > /proc/sys/kernel/printk + - lava-test-case step7-stop-adbd --shell stop adbd + - lava-test-case step8-start-adbd --shell start adbd + - sleep 10 + - 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 - - lava-test-case step7-multinode-sync --shell lava-sync $TEST_NAME-finished + - lava-test-case step7-enable-kmsg --shell 'cat /data/local/tmp/kmsg_levels > /proc/sys/kernel/printk' + - lava-test-case step8-multinode-sync --shell lava-sync $TEST_NAME-finished |