summaryrefslogtreecommitdiff
path: root/test-art-target-test.sh
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2016-01-20 17:24:48 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2016-01-20 17:27:32 +0530
commitec0b15f238d5a7e46d0854f34797c58b10c821e3 (patch)
tree25f811a954ee5b003e84a4814416702ad0100771 /test-art-target-test.sh
parent1f970bf7e45d2478cb9c4b4f9f7101ce91eb2fa6 (diff)
downloadart-build-tests.sh-ec0b15f238d5a7e46d0854f34797c58b10c821e3.tar.gz
test-art-target-test: Save dmesg and battery status as attachment to the job
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'test-art-target-test.sh')
-rwxr-xr-xtest-art-target-test.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/test-art-target-test.sh b/test-art-target-test.sh
index 613e885..3fa2d02 100755
--- a/test-art-target-test.sh
+++ b/test-art-target-test.sh
@@ -28,8 +28,11 @@ time ./art/tools/buildbot-build.sh -j12 --target
# Build servers do not necessarily have up to date udev rules, start adb-server
# as root to avoid the issue
[[ $JENKINS_MODE ]] && sudo out/host/linux-x86/bin/adb start-server
-[[ $JENKINS_MODE ]] && out/host/linux-x86/bin/adb shell dumpsys battery
+[[ $JENKINS_MODE ]] && echo "\n\n\n\n***********************************************\n" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && echo "****** Battery level before 64bit tests ********\n" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && adb shell dumpsys battery >> $WORKSPACE/device_log.txt
[[ $JENKINS_MODE ]] && sudo dmesg -C
+
adb shell rm -rf /data/local/tmp /data/art-test /data/nativetest
./art/tools/setup-buildbot-device.sh
@@ -97,6 +100,10 @@ echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs-64.txt | grep "run-test" |
#grep -rni "1mFAILED" $WORKSPACE/build-logs-64.txt | sed "s/.*://g" | sed "s/ .*//g" > $WORKSPACE/failing-tests-64.txt
#grep -rni "3mSKIPPING" $WORKSPACE/build-logs-64.txt | sed "s/.*://g" | sed "s/ .*//g" > $WORKSPACE/skipped-tests-64.txt
+[[ $JENKINS_MODE ]] && echo "\n\n\n\n***********************************************\n" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && echo "****** Battery level after 64bit tests ********\n" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && adb shell dumpsys battery >> $WORKSPACE/device_log.txt
+
rm -rf out/target/product/armv8*
adb shell rm -rf /data/local/tmp /data/art-test /data/nativetest
@@ -184,6 +191,12 @@ echo "YVALUE=$MAKE_TIME" > $WORKSPACE/make_time.txt
echo "YVALUE=$REPO_TIME" > $WORKSPACE/repo_time.txt
ccache -s
+[[ $JENKINS_MODE ]] && echo "\n\n\n\n***********************************************\n" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && echo "****** Battery level after 32bit tests ********\n" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && adb shell dumpsys battery >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && echo "\n\n\n*********** Dumping dmesg output *************"
+[[ $JENKINS_MODE ]] && dmesg >> $WORKSPACE/device_log.txt
+
if [[ $failed -ne 0 ]]; then
echo "*********** Dumping dmesg output *************"
dmesg