Android devices: wait for 100% charge
Some devices are getting pretty low by the end of the build (3%). No reason to cut it close, bump to 100% charge. This will cause some devices to sit for a while as they charge up. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1556023002 Review URL: https://codereview.chromium.org/1556023002
This commit is contained in:
parent
b3a835891c
commit
50850b152f
@ -72,7 +72,7 @@ while [ "$($ADB $DEVICE_SERIAL shell getprop sys.boot_completed | tr -d '\r')" !
|
||||
done
|
||||
|
||||
# Wait for battery charge.
|
||||
DESIRED_BATTERY_LEVEL=30
|
||||
DESIRED_BATTERY_LEVEL=100
|
||||
CURRENT_BATTERY_LEVEL="$(get_battery_level)"
|
||||
while [ "${CURRENT_BATTERY_LEVEL}" -lt "${DESIRED_BATTERY_LEVEL}" ]; do
|
||||
echo "Battery level is ${CURRENT_BATTERY_LEVEL}; waiting to charge to ${DESIRED_BATTERY_LEVEL}"
|
||||
|
Loading…
Reference in New Issue
Block a user