afe_utils: Adapt to the new behavior of chromite's auto_updater.py
A few function calls here are already being done in
auto_updater.py:RunUpdate(). We don't need to do them individually
anymore.
BUG=chromium:1071483
TEST=test_that --autotest_dir ~/trunk/src/third_party/autotest/files/ --args="value='reef-release/R85-13280.0.0'" chromeos6-row4-rack10-host11.cros.corp.google.com provision_AutoUpdate
Cq-Depend: chromium:2257395
Change-Id: Ia6cd30b7895a103a4781d7f644363dd6583ccfcf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2261562
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Sanika Kulkarni <sanikak@chromium.org>
Reviewed-by: David Haddock <dhaddock@chromium.org>
Commit-Queue: Amin Hassani <ahassani@chromium.org>
diff --git a/server/afe_utils.py b/server/afe_utils.py
index 70b0314..147055e 100644
--- a/server/afe_utils.py
+++ b/server/afe_utils.py
@@ -195,11 +195,9 @@
host.ip, base_dir=DEVICE_BASE_DIR) as device:
updater = auto_updater.ChromiumOSUpdater(
device, None, image_name, auto_updater_transfer.LabTransfer,
- staging_server=staging_server.url(), reboot=False)
- updater.CheckPayloads()
+ staging_server=staging_server.url(), reboot=True,
+ clear_tpm_owner=True)
updater.RunUpdate()
- updater.SetClearTpmOwnerRequest()
- updater.RebootAndVerify()
repo_url = tools.get_package_url(staging_server.url(), image_name)
host_attributes = {ds_constants.JOB_REPO_URL: repo_url}
except Exception as e: