battery_cutoff: add some more retry

We see some devices not able to cut off in factory. The reason may be
shutdown fail or ectool unstable. This CL add some more retries to avoid
the cut off fail problems, and switch to battery cutoff if shutdown
fails.

BUG=chrome-os-partner:50774,chromium:589677
TEST=None

Change-Id: I7e0e1c56e5492f74552c5b88e9e7edc5a91b7d42
Reviewed-on: https://chromium-review.googlesource.com/332016
Commit-Ready: Shun-Hsing Ou <shunhsingou@chromium.org>
Tested-by: Shun-Hsing Ou <shunhsingou@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
1 file changed