aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools
diff options
context:
space:
mode:
authorGravatar borenet <borenet@google.com>2015-12-14 06:48:43 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-14 06:48:43 -0800
commitb11c4ff668d638afa81503623ae8c82afb57a8e1 (patch)
tree41d5eab124c027c5dbbc5f15954119e1925dd795 /platform_tools
parent4ff653cab2e1e3cfb02c91df9c9013fc927aa1ee (diff)
adb_wait_for_device: If we can't get the battery level, just exit
BUG=skia:4606 TBR=rmistry NOTREECHECKS=true Review URL: https://codereview.chromium.org/1529453002
Diffstat (limited to 'platform_tools')
-rwxr-xr-xplatform_tools/android/bin/adb_wait_for_device3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform_tools/android/bin/adb_wait_for_device b/platform_tools/android/bin/adb_wait_for_device
index 882cd3fed4..914b5fb5ce 100755
--- a/platform_tools/android/bin/adb_wait_for_device
+++ b/platform_tools/android/bin/adb_wait_for_device
@@ -16,7 +16,8 @@ function get_battery_level {
fi
done
echo "Could not determine battery level!" 1>&2
- echo "0"
+ # Just exit to prevent hanging forever or failing the build.
+ exit 0
}
set -e