summaryrefslogtreecommitdiff
path: root/test-art-target-test.sh
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2016-01-21 16:11:51 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2016-01-21 16:11:51 +0530
commit8cee1559107f94c6e02fb2a7d6bafb3c7cb96097 (patch)
tree2c533e3da5735ef9e8ccfdac59912c66dce6c8e1 /test-art-target-test.sh
parentf3515af4251928500f3aca685d0f8d19ba4db669 (diff)
downloadart-build-tests.sh-8cee1559107f94c6e02fb2a7d6bafb3c7cb96097.tar.gz
test-art-target-test: add more logging
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, 8 insertions, 7 deletions
diff --git a/test-art-target-test.sh b/test-art-target-test.sh
index 3fa2d02..7d24b68 100755
--- a/test-art-target-test.sh
+++ b/test-art-target-test.sh
@@ -28,8 +28,9 @@ 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 ]] && 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 ]] && echo "Building on: " `hostname` >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && echo "***********************************************" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && echo "****** Battery level before 64bit tests ********" >> $WORKSPACE/device_log.txt
[[ $JENKINS_MODE ]] && adb shell dumpsys battery >> $WORKSPACE/device_log.txt
[[ $JENKINS_MODE ]] && sudo dmesg -C
@@ -100,8 +101,8 @@ 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 ]] && echo "***********************************************" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && echo "****** Battery level after 64bit tests ********" >> $WORKSPACE/device_log.txt
[[ $JENKINS_MODE ]] && adb shell dumpsys battery >> $WORKSPACE/device_log.txt
rm -rf out/target/product/armv8*
@@ -191,10 +192,10 @@ 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 ]] && echo "***********************************************" >> $WORKSPACE/device_log.txt
+[[ $JENKINS_MODE ]] && echo "****** Battery level after 32bit tests ********" >> $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 ]] && echo "*********** Dumping dmesg output *************" >> $WORKSPACE/device_log.txt
[[ $JENKINS_MODE ]] && dmesg >> $WORKSPACE/device_log.txt
if [[ $failed -ne 0 ]]; then