| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 extra_url_components=self.mastername) | 355 extra_url_components=self.mastername) |
| 356 self.m.archive.download_and_unzip_build( | 356 self.m.archive.download_and_unzip_build( |
| 357 'extract build', | 357 'extract build', |
| 358 self.m.chromium.c.build_config_fs, | 358 self.m.chromium.c.build_config_fs, |
| 359 download_url, | 359 download_url, |
| 360 build_revision=self.revision) | 360 build_revision=self.revision) |
| 361 | 361 |
| 362 def cleanup(self): | 362 def cleanup(self): |
| 363 self.clean_test_output() | 363 self.clean_test_output() |
| 364 if self.m.chromium.c.TARGET_PLATFORM == 'android': | 364 if self.m.chromium.c.TARGET_PLATFORM == 'android': |
| 365 self.m.chromium_android.clean_local_files() | 365 self.m.chromium_android.clean_local_files(clean_pyc_files=False) |
| 366 else: | 366 else: |
| 367 self.m.chromium.cleanup_temp() | 367 self.m.chromium.cleanup_temp() |
| 368 if self.c.use_isolate: | 368 if self.c.use_isolate: |
| 369 self.m.isolate.clean_isolated_files(self.m.chromium.output_dir) | 369 self.m.isolate.clean_isolated_files(self.m.chromium.output_dir) |
| 370 | 370 |
| 371 def clean_test_output(self): | 371 def clean_test_output(self): |
| 372 """Remove all test output in out/, since we have tests leaking files.""" | 372 """Remove all test output in out/, since we have tests leaking files.""" |
| 373 out_dir = self.m.path['checkout'].join('out') | 373 out_dir = self.m.path['checkout'].join('out') |
| 374 self.m.python('clean test output files', | 374 self.m.python('clean test output files', |
| 375 script=self.resource('cleanup_files.py'), | 375 script=self.resource('cleanup_files.py'), |
| 376 args=[out_dir], | 376 args=[out_dir], |
| 377 infra_step=True) | 377 infra_step=True) |
| 378 | 378 |
| 379 def virtual_webcam_check(self): | 379 def virtual_webcam_check(self): |
| 380 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) | 380 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) |
| OLD | NEW |