diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2015-09-09 23:40:57 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2015-09-09 23:40:57 +0100 |
commit | cd87ae9552445e02aab3542d0e86620455d7bb75 (patch) | |
tree | 42b88c6c987dc5b8b52a42c2940368db3321d90e /android/cts-target.yaml | |
parent | 3de0aefe89b698e4a50f814973232ccb1dc32dfc (diff) |
Android: CTS: modified multinode CTS
Multinode CTS was modified in order to gracefully handle device
disconnection events and save logs even in exeptional situations.
Results are presented as number of pass/failed/executed for each
package. All log files are attached to the results. This should bring
smaller log files in LAVA and more readability to the results.
Change-Id: Idd2afc4fea63f2ea66e07ad4e4608ed7401b95f6
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'android/cts-target.yaml')
-rw-r--r-- | android/cts-target.yaml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/android/cts-target.yaml b/android/cts-target.yaml index e2200be..a742a7a 100644 --- a/android/cts-target.yaml +++ b/android/cts-target.yaml @@ -4,7 +4,7 @@ metadata: description: "Run CTS on Linaro android. Target side. The value put in params section in this file is default, user can overwrite them by the values in JSON file." maintainer: - - botao.sun@linaro.org + - milosz.wasilewski@linaro.org os: - android devices: @@ -19,13 +19,18 @@ metadata: params: TEST_NAME: "android-cts-5.0-armv8" + run: steps: - lava-test-case step1-cat-build-info --shell cat /system/build.prop + - SERIALNO=$(getprop ro.serialno) - 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 + # if serial number exists it's preferred over IP based adb connection + # This means we're on 'usb only' device with WiFi connectivity + - if [ ! -z $SERIALNO ]; then IPADDR=$SERIALNO; fi + - if [ -z $SERIALNO ]; then lava-test-case step2-get-adb --shell getprop service.adb.tcp.port; fi + - if [ -z $SERIALNO ]; then lava-test-case step3-set-adb --shell setprop service.adb.tcp.port 5555; fi - 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 |