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-host.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-host.yaml')
-rw-r--r-- | android/cts-host.yaml | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/android/cts-host.yaml b/android/cts-host.yaml index e4632b9..85252a5 100644 --- a/android/cts-host.yaml +++ b/android/cts-host.yaml @@ -5,7 +5,7 @@ metadata: Get user defined CTS test command from JSON and run; 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: - ubuntu devices: @@ -18,6 +18,12 @@ install: - xz-utils - python-lxml - python-setuptools + - android-tools-adb + - android-tools-fastboot + - zip + - libc6:i386 + - libncurses5:i386 + - libstdc++6:i386 params: JDK: "default-jdk" @@ -28,12 +34,15 @@ params: run: steps: - - apt-add-repository -y http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu - - apt-get update -y - - apt-get install -y android-tools-adb android-tools-fastboot zip $JDK $JRE libc6:i386 libncurses5:i386 libstdc++6:i386 + - apt-get install -y $JDK $JRE - lava-wait $TEST_NAME-send-ip - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt` - - adb connect $IPADDR - - adb wait-for-device - - "./android/scripts/cts.py $CTS_URL $TEST_PARAMS" + - export REGEX="([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])" + - echo $IPADDR | grep -P $REGEX + - if [ $? -eq 0 ]; then adb connect $IPADDR; IPADDR=$IPADDR:5555; fi + - adb -s $IPADDR wait-for-device + - "./android/scripts/cts.py $CTS_URL $IPADDR $TEST_PARAMS" + - echo "processes running" + - ps - lava-sync $TEST_NAME-finished + |