Commit 7bfa4d8d authored by borenet@google.com's avatar borenet@google.com

gclient: Use the correct bot hostnames to enable experimental deletion behavior

BUG=skia:1638

Review URL: https://codereview.chromium.org/132313017

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@250524 0039d316-1c4b-4281-b951-d872f2087c98
parent d9839e8e
...@@ -680,9 +680,8 @@ class Dependency(gclient_utils.WorkItem, DependencySettings): ...@@ -680,9 +680,8 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
# doesn't cause the bots to break. # doesn't cause the bots to break.
if not os.environ.get('CHROME_HEADLESS'): if not os.environ.get('CHROME_HEADLESS'):
return False return False
hostname = socket.gethostname() return socket.gethostname() in ('vm859-m1', 'BUILD1-M1',
logging.warning('Hostname of this machine: %s' % hostname) 'vm630-m1.golo.chromium.org')
return hostname in ('vm859-m1', 'build1-m1', 'vm630-m1')
# When updating, determine whether the destination directory contains a # When updating, determine whether the destination directory contains a
# checkout of the desired repository. If not, avoid conflicts by # checkout of the desired repository. If not, avoid conflicts by
......
...@@ -1396,7 +1396,8 @@ class GClientSmokeBoth(GClientSmokeBase): ...@@ -1396,7 +1396,8 @@ class GClientSmokeBoth(GClientSmokeBase):
# TODO(borenet): Enable this at the same time that the guard is removed in # TODO(borenet): Enable this at the same time that the guard is removed in
# gclient. # gclient.
if (os.environ.get('CHROME_HEADLESS') and if (os.environ.get('CHROME_HEADLESS') and
socket.gethostname() in ('vm859-m1', 'build1-m1', 'vm630-m1')): socket.gethostname() in ('vm859-m1', 'BUILD1-M1',
'vm630-m1.golo.chromium.org')):
def testDeleteConflictingCheckout(self): def testDeleteConflictingCheckout(self):
if not self.enabled: if not self.enabled:
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment