diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2016-01-19 17:23:51 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2016-01-19 22:04:37 +0530 |
commit | 17a179bb524e708cc882c15fde286696643e0b2b (patch) | |
tree | 981527c8bf68740fafa9b033a876fa280065eb0f /test-art-target-test.sh | |
parent | eee94c342c2aac9f50f61f0e6da880f40a044b8b (diff) |
Dump dmesg and battery level incase of failure
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'test-art-target-test.sh')
-rwxr-xr-x | test-art-target-test.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test-art-target-test.sh b/test-art-target-test.sh index 2993e20..613e885 100755 --- a/test-art-target-test.sh +++ b/test-art-target-test.sh @@ -28,6 +28,8 @@ 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 ]] && sudo dmesg -C adb shell rm -rf /data/local/tmp /data/art-test /data/nativetest ./art/tools/setup-buildbot-device.sh @@ -183,5 +185,9 @@ echo "YVALUE=$REPO_TIME" > $WORKSPACE/repo_time.txt ccache -s if [[ $failed -ne 0 ]]; then + echo "*********** Dumping dmesg output *************" + dmesg + echo "*********** Battery LEVEL *****************" + out/host/linux-x86/bin/adb shell dumpsys battery exit 1 fi |