| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 from recipe_engine import recipe_api | 6 from recipe_engine import recipe_api |
| 7 from . import builders | 7 from . import builders |
| 8 from . import steps | 8 from . import steps |
| 9 | 9 |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 self.m.chromium_swarming.configure_swarming( | 138 self.m.chromium_swarming.configure_swarming( |
| 139 'webrtc', | 139 'webrtc', |
| 140 precommit=self.m.tryserver.is_tryserver, | 140 precommit=self.m.tryserver.is_tryserver, |
| 141 mastername=mastername) | 141 mastername=mastername) |
| 142 self.m.swarming.set_default_dimension( | 142 self.m.swarming.set_default_dimension( |
| 143 'os', | 143 'os', |
| 144 self.m.swarming.prefered_os_dimension( | 144 self.m.swarming.prefered_os_dimension( |
| 145 self.m.platform.name).split('-', 1)[0]) | 145 self.m.platform.name).split('-', 1)[0]) |
| 146 | 146 |
| 147 def checkout(self, **kwargs): | 147 def checkout(self, **kwargs): |
| 148 self._working_dir = self.m.chromium_tests.get_checkout_dir({}) | 148 self._working_dir = self.m.chromium_checkout.get_checkout_dir({}) |
| 149 if self._working_dir: | 149 if self._working_dir: |
| 150 kwargs.setdefault('cwd', self._working_dir) | 150 kwargs.setdefault('cwd', self._working_dir) |
| 151 | 151 |
| 152 update_step = self.m.bot_update.ensure_checkout(**kwargs) | 152 update_step = self.m.bot_update.ensure_checkout(**kwargs) |
| 153 assert update_step.json.output['did_run'] | 153 assert update_step.json.output['did_run'] |
| 154 | 154 |
| 155 # Whatever step is run right before this line needs to emit got_revision. | 155 # Whatever step is run right before this line needs to emit got_revision. |
| 156 revs = update_step.presentation.properties | 156 revs = update_step.presentation.properties |
| 157 self.revision = revs['got_revision'] | 157 self.revision = revs['got_revision'] |
| 158 self.revision_cp = revs['got_revision_cp'] | 158 self.revision_cp = revs['got_revision_cp'] |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 def clean_test_output(self): | 317 def clean_test_output(self): |
| 318 """Remove all test output in out/, since we have tests leaking files.""" | 318 """Remove all test output in out/, since we have tests leaking files.""" |
| 319 out_dir = self.m.path['checkout'].join('out') | 319 out_dir = self.m.path['checkout'].join('out') |
| 320 self.m.python('clean test output files', | 320 self.m.python('clean test output files', |
| 321 script=self.resource('cleanup_files.py'), | 321 script=self.resource('cleanup_files.py'), |
| 322 args=[out_dir], | 322 args=[out_dir], |
| 323 infra_step=True) | 323 infra_step=True) |
| 324 | 324 |
| 325 def virtual_webcam_check(self): | 325 def virtual_webcam_check(self): |
| 326 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) | 326 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) |
| OLD | NEW |