Revert "Update devserver urls with /archive in autotest."
This reverts commit f67d57a79eab93bf731f5bcf2a48fd04e3e08c68
This seems to be causing bugs in the test environment prior
to pushing to prod.
BUG=chromium:262279
TEST=see bug description
Change-Id: I79c300ad5647d283b862322e7ce29d8b7165766d
Reviewed-on: https://gerrit.chromium.org/gerrit/62708
Commit-Queue: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Joy Chen <joychen@chromium.org>
diff --git a/client/common_lib/cros/autoupdater.py b/client/common_lib/cros/autoupdater.py
index 78eaaa1..353605d 100644
--- a/client/common_lib/cros/autoupdater.py
+++ b/client/common_lib/cros/autoupdater.py
@@ -253,8 +253,14 @@
@param clobber: If True, a clean stateful installation.
"""
logging.info('Updating stateful partition...')
- statefuldev_url = self.update_url.replace('update',
- 'static')
+ # For production devservers we create a static tree of payloads rooted
+ # at archive.
+ if not self.local_devserver:
+ statefuldev_url = self.update_url.replace('update',
+ 'static/archive')
+ else:
+ statefuldev_url = self.update_url.replace('update',
+ 'static')
# Attempt stateful partition update; this must succeed so that the newly
# installed host is testable after update.