| 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 import os | 5 import os |
| 6 import urllib | 6 import urllib |
| 7 | 7 |
| 8 from infra.libs.infra_types import freeze | 8 from infra.libs.infra_types import freeze |
| 9 from slave import recipe_api | 9 from slave import recipe_api |
| 10 | 10 |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 args = args + ['--extra_src', extra_src] | 620 args = args + ['--extra_src', extra_src] |
| 621 if path_to_config: | 621 if path_to_config: |
| 622 args = args + ['--path_to_config', path_to_config] | 622 args = args + ['--path_to_config', path_to_config] |
| 623 self.m.step('run bisect perf regression', | 623 self.m.step('run bisect perf regression', |
| 624 [self.m.path['checkout'].join('tools', | 624 [self.m.path['checkout'].join('tools', |
| 625 'run-bisect-perf-regression.py'), | 625 'run-bisect-perf-regression.py'), |
| 626 '-w', self.m.path['slave_build']] + args, **kwargs) | 626 '-w', self.m.path['slave_build']] + args, **kwargs) |
| 627 | 627 |
| 628 def run_test_suite(self, suite, verbose=True, isolate_file_path=None, | 628 def run_test_suite(self, suite, verbose=True, isolate_file_path=None, |
| 629 gtest_filter=None, tool=None, flakiness_dashboard=None, | 629 gtest_filter=None, tool=None, flakiness_dashboard=None, |
| 630 name=None, json_results_file=None, args=None, |
| 630 **kwargs): | 631 **kwargs): |
| 631 args = [] | 632 args = args or [] |
| 632 if verbose: | 633 if verbose: |
| 633 args.append('--verbose') | 634 args.append('--verbose') |
| 634 if self.c.BUILD_CONFIG == 'Release': | 635 if self.c.BUILD_CONFIG == 'Release': |
| 635 args.append('--release') | 636 args.append('--release') |
| 636 if isolate_file_path: | 637 if isolate_file_path: |
| 637 args.append('--isolate_file_path=%s' % isolate_file_path) | 638 args.append('--isolate_file_path=%s' % isolate_file_path) |
| 638 if gtest_filter: | 639 if gtest_filter: |
| 639 args.append('--gtest_filter=%s' % gtest_filter) | 640 args.append('--gtest_filter=%s' % gtest_filter) |
| 640 if tool: | 641 if tool: |
| 641 args.append('--tool=%s' % tool) | 642 args.append('--tool=%s' % tool) |
| 642 if flakiness_dashboard: | 643 if flakiness_dashboard: |
| 643 args.append('--flakiness-dashboard-server=%s' % | 644 args.append('--flakiness-dashboard-server=%s' % |
| 644 flakiness_dashboard) | 645 flakiness_dashboard) |
| 646 if json_results_file: |
| 647 args.extend(['--json-results-file', json_results_file]) |
| 645 | 648 |
| 646 self.m.python( | 649 self.m.python( |
| 647 str(suite), | 650 name or str(suite), |
| 648 self.c.test_runner, | 651 self.c.test_runner, |
| 649 ['gtest', '-s', suite] + args, | 652 ['gtest', '-s', suite] + args, |
| 650 env=self.m.chromium.get_env(), | 653 env=self.m.chromium.get_env(), |
| 651 **kwargs) | 654 **kwargs) |
| 652 | 655 |
| 653 def run_java_unit_test_suite(self, suite, verbose=True, **kwargs): | 656 def run_java_unit_test_suite(self, suite, verbose=True, **kwargs): |
| 654 args = [] | 657 args = [] |
| 655 if verbose: | 658 if verbose: |
| 656 args.append('--verbose') | 659 args.append('--verbose') |
| 657 if self.c.BUILD_CONFIG == 'Release': | 660 if self.c.BUILD_CONFIG == 'Release': |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 | 699 |
| 697 self.m.gsutil.upload( | 700 self.m.gsutil.upload( |
| 698 source=self.coverage_dir.join('coverage_html'), | 701 source=self.coverage_dir.join('coverage_html'), |
| 699 bucket='chrome-code-coverage', | 702 bucket='chrome-code-coverage', |
| 700 dest=gs_dest, | 703 dest=gs_dest, |
| 701 args=['-R'], | 704 args=['-R'], |
| 702 name='upload coverage report', | 705 name='upload coverage report', |
| 703 link_name='Coverage report', | 706 link_name='Coverage report', |
| 704 version='4.7', | 707 version='4.7', |
| 705 **kwargs) | 708 **kwargs) |
| OLD | NEW |