summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-11-29 18:29:13 -0800
committerAlex Deymo <deymo@google.com>2016-11-30 13:32:07 -0800
commit821c833bf2b14d043c4664785cd0f4d5285cc98f (patch)
treea7acf2b64b5615bf57efa2167e6e870912026784 /scripts/update_payload/format_utils_unittest.py
parent3526e769b2fcac389fef7d20b3cb2e22133122a9 (diff)
Mark current slot successful after cancelling an update.
When cancelling an update that was completed and pending reboot, we need to rollback the "SetActiveSlot(the_other_slot)" action performed when the update was applied. We used to just mark the current slot as active, which should switch the priorities to make the current slot the priority one. This patch also marks the current slot as successful after marking it as active since the action of marking a slot as active in the HAL might reset the successful bit. The current slot must have already been marked as successful because an update was applied, so this wouldn't mark a bad slot successful. Bug: 33102712 Test: Manual test: deployed an update, cancelled it with --reset_status and checked that the current slot is still marked as successful. (cherry picked from commit 5259033d23938ce3ce20e4a9b599be0eec113610) Change-Id: I14f00fc0fb7156f148d06d1ed9a547223d7926cc
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions