| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 extra_url_components=self.mastername) | 270 extra_url_components=self.mastername) |
| 271 self.m.archive.zip_and_upload_build( | 271 self.m.archive.zip_and_upload_build( |
| 272 'package build', | 272 'package build', |
| 273 self.m.chromium.c.build_config_fs, | 273 self.m.chromium.c.build_config_fs, |
| 274 upload_url, | 274 upload_url, |
| 275 build_revision=self.revision) | 275 build_revision=self.revision) |
| 276 | 276 |
| 277 def extract_build(self): | 277 def extract_build(self): |
| 278 if not self.m.properties.get('parent_got_revision'): | 278 if not self.m.properties.get('parent_got_revision'): |
| 279 raise self.m.step.StepFailure( | 279 raise self.m.step.StepFailure( |
| 280 'Testers cannot be forced without providing revision information.' | 280 'Testers cannot be forced without providing revision information. ' |
| 281 'Please select a previous build and click [Rebuild] or force a build' | 281 'Please select a previous build and click [Rebuild] or force a build ' |
| 282 'for a Builder instead (will trigger new runs for the testers).') | 282 'for a Builder instead (will trigger new runs for the testers).') |
| 283 | 283 |
| 284 # Ensure old build directory is not used is by removing it. | 284 # Ensure old build directory isn't being used by removing it. |
| 285 self.m.file.rmtree( | 285 self.m.file.rmtree( |
| 286 'build directory', | 286 'build directory', |
| 287 self.m.chromium.c.build_dir.join(self.m.chromium.c.build_config_fs)) | 287 self.m.chromium.c.build_dir.join(self.m.chromium.c.build_config_fs)) |
| 288 | 288 |
| 289 download_url = self.m.archive.legacy_download_url( | 289 download_url = self.m.archive.legacy_download_url( |
| 290 self.master_config.get('build_gs_bucket'), | 290 self.master_config.get('build_gs_bucket'), |
| 291 extra_url_components=self.mastername) | 291 extra_url_components=self.mastername) |
| 292 self.m.archive.download_and_unzip_build( | 292 self.m.archive.download_and_unzip_build( |
| 293 'extract build', | 293 'extract build', |
| 294 self.m.chromium.c.build_config_fs, | 294 self.m.chromium.c.build_config_fs, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 307 def clean_test_output(self): | 307 def clean_test_output(self): |
| 308 """Remove all test output in out/, since we have tests leaking files.""" | 308 """Remove all test output in out/, since we have tests leaking files.""" |
| 309 out_dir = self.m.path['checkout'].join('out') | 309 out_dir = self.m.path['checkout'].join('out') |
| 310 self.m.python('clean test output files', | 310 self.m.python('clean test output files', |
| 311 script=self.resource('cleanup_files.py'), | 311 script=self.resource('cleanup_files.py'), |
| 312 args=[out_dir], | 312 args=[out_dir], |
| 313 infra_step=True) | 313 infra_step=True) |
| 314 | 314 |
| 315 def virtual_webcam_check(self): | 315 def virtual_webcam_check(self): |
| 316 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) | 316 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) |
| OLD | NEW |