summaryrefslogtreecommitdiff
path: root/scripts/payload_info.py
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@chromium.org>2020-07-28 12:32:49 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-28 16:38:51 +0000
commit03277ded5a781a28b2485ba38a957e1a333ab3c6 (patch)
tree449123286cc1e8d0682556afafb7574b55e538a7 /scripts/payload_info.py
parent612da762b2cee5cf942b22d63cb41598b3e8a65c (diff)
update_engine: Providing testing capability for periodic update checks
Currently, we are not able to properly test periodic update checks because these update checks are disabled on test images. To solve this problem this CL introduces a new pref test-update-check-interval-timeout that contains the number of seconds between periodic update checks. The tests can put this file in /var/lib/update_engine/prefs and restart the update_engine. The update_engine should start checking for update after the number of seconds identified in the above pref and continue checking for update with that interval. The tests also need to make sure this file is deleted at the end so it doesn't interfere with future device updates. This pref internally is deleted after it has been read/used 3 times so it can't be abused. For the same reason, the maximum value that can be set in the pref is limited to 10 minutes. BUG=chromium:953471 TEST=FEATURES=test emerge-reef update_engine TEST=flashed a device with this new image, put the pref with value of 10 seconds and restarted the update_engine, the update check happened. Change-Id: I3ad0e300f7908f17da26b0eb0d1510348a2d2435 Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2333308 Commit-Queue: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Jae Hoon Kim <kimjae@chromium.org> Reviewed-by: Andrew Lassalle <andrewlassalle@chromium.org>
Diffstat (limited to 'scripts/payload_info.py')
0 files changed, 0 insertions, 0 deletions