bootstrap: Clean Chrome checkout on branch checkouts.
gclient can't handle moving Chrome checkouts between branches
reliably, so wipe the Chrome checkout on changes. This is what some
versions of cbuildbot already do, but not older branches.
Chrome is checked out into a subdirectory of .cache, but we don't want
to wipe all of .cache if we can help it, so just wipe
.cache/distfiles.
BUG=chromium:684907
TEST=Same as the rest of the CL stack.
Change-Id: Idf30214e1da28ec8658d0c5784d495c56b34da83
Reviewed-on: https://chromium-review.googlesource.com/447219
Commit-Ready: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Ningning Xia <nxia@chromium.org>
diff --git a/scripts/bootstrap_unittest.py b/scripts/bootstrap_unittest.py
index 2e8c221..c74708d 100644
--- a/scripts/bootstrap_unittest.py
+++ b/scripts/bootstrap_unittest.py
@@ -183,6 +183,7 @@
self.repo = os.path.join(self.tempdir, '.repo/repo')
self.chroot = os.path.join(self.tempdir, 'chroot/chroot')
self.general = os.path.join(self.tempdir, 'general/general')
+ # TODO: Add .cache, and distfiles.
def populateBuildroot(self, state=None):
"""Create standard buildroot contents for cleanup."""