[autotest] Update chromeos repo to pull projects
We need to actually update the whole repo to pull the pip_packages
project.
BUG=chromium:621741
TEST=Run on test drone
Change-Id: I0dd5eb7b1870009f4ef3629d5953b44f98b86d54
Reviewed-on: https://chromium-review.googlesource.com/394926
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
diff --git a/site_utils/deploy_server_local.py b/site_utils/deploy_server_local.py
index 091e4aa..9dca854 100755
--- a/site_utils/deploy_server_local.py
+++ b/site_utils/deploy_server_local.py
@@ -445,11 +445,11 @@
os.chdir(self.old_dir)
-def update_chromeos_chromite():
- """Update /usr/local/google/chromeos/chromite repo."""
- print('Updating /usr/local/google/chromeos/chromite.')
- with ChangeDir('/usr/local/google/chromeos/chromite'):
- ret = subprocess.call(['repo', 'sync', '.'])
+def update_chromeos():
+ """Update /usr/local/google/chromeos repo."""
+ print('Updating /usr/local/google/chromeos')
+ with ChangeDir('/usr/local/google/chromeos'):
+ ret = subprocess.call(['repo', 'sync'])
if ret != 0:
print('Update failed, exited with status: %d' % ret)
@@ -484,7 +484,7 @@
versions_after = repo_versions()
cmd_versions_after = repo_versions_to_decide_whether_run_cmd_update()
- update_chromeos_chromite()
+ update_chromeos()
if behaviors.actions:
# If the corresponding repo/file not change, no need to run the cmd.