| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 | 6 |
| 7 """Update the root-level buildbot checkout on each buildslave host. | 7 """Update the root-level buildbot checkout on each buildslave host. |
| 8 | 8 |
| 9 This differs from UpdateScripts in that it updates the root-level buildbot | 9 This differs from UpdateScripts in that it updates the root-level buildbot |
| 10 script checkouts on ALL host machines, as opposed to a single buildslave's | 10 script checkouts on ALL host machines, as opposed to a single buildslave's |
| 11 checkout of the buildbot scripts on a single host machine. | 11 checkout of the buildbot scripts on a single host machine. |
| 12 """ | 12 """ |
| 13 | 13 |
| 14 | 14 |
| 15 import re | 15 import re |
| 16 import skia_vars | 16 import skia_vars |
| 17 import sys | 17 import sys |
| 18 | 18 |
| 19 from build_step import BuildStep, BuildStepWarning | 19 from build_step import BuildStep, BuildStepWarning |
| 20 from utils import force_update_checkout | 20 from utils import force_update_checkout |
| 21 from utils import misc | 21 from py.utils import misc |
| 22 | 22 |
| 23 sys.path.append(misc.BUILDBOT_PATH) | 23 sys.path.append(misc.BUILDBOT_PATH) |
| 24 | 24 |
| 25 from scripts import run_cmd | 25 from scripts import run_cmd |
| 26 | 26 |
| 27 | 27 |
| 28 BUILDBOT_GIT_URL = skia_vars.GetGlobalVariable('buildbot_git_url') | 28 BUILDBOT_GIT_URL = skia_vars.GetGlobalVariable('buildbot_git_url') |
| 29 | 29 |
| 30 | 30 |
| 31 class UpdateAllSlaveHosts(BuildStep): | 31 class UpdateAllSlaveHosts(BuildStep): |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 print ' ', failed_host | 63 print ' ', failed_host |
| 64 | 64 |
| 65 if failed: | 65 if failed: |
| 66 # TODO(borenet): Make sure that we can log in to all hosts, then make this | 66 # TODO(borenet): Make sure that we can log in to all hosts, then make this |
| 67 # an error. | 67 # an error. |
| 68 raise BuildStepWarning('Could not update some hosts.') | 68 raise BuildStepWarning('Could not update some hosts.') |
| 69 | 69 |
| 70 | 70 |
| 71 if '__main__' == __name__: | 71 if '__main__' == __name__: |
| 72 sys.exit(BuildStep.RunBuildStep(UpdateAllSlaveHosts)) | 72 sys.exit(BuildStep.RunBuildStep(UpdateAllSlaveHosts)) |
| OLD | NEW |