[autotest] add powerwash to repair funcs if update engine failed

Update engine may fail due to a bad image. In such case, powerwash may help to
cleanup the DUT for update engine to work again.

BUG=chromium:318258
TEST=repair a dut in local setup, interrupt the first repair attempt with
update engine by rebooting dut in the middle of repair. Confirm powerwash is
forced in the second attempt.

Change-Id: Ie84e0b4ff95328582cf75f1f999c053a737b72ac
Reviewed-on: https://chromium-review.googlesource.com/176550
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
1 file changed