| 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 collections | 5 import collections |
| 6 import datetime | 6 import datetime |
| 7 import math | 7 import math |
| 8 import re | 8 import re |
| 9 | 9 |
| 10 from infra.libs.infra_types import freeze | 10 from infra.libs.infra_types import freeze |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 if extra_flags: | 828 if extra_flags: |
| 829 full_args.append('--extra-flags="%s"' % ' '.join(extra_flags)) | 829 full_args.append('--extra-flags="%s"' % ' '.join(extra_flags)) |
| 830 | 830 |
| 831 step_test_data = lambda: self.test_api.perf_json( | 831 step_test_data = lambda: self.test_api.perf_json( |
| 832 self._test_data.get('perf_failures', False)) | 832 self._test_data.get('perf_failures', False)) |
| 833 | 833 |
| 834 try: | 834 try: |
| 835 if download_test is not None: | 835 if download_test is not None: |
| 836 self.m.python( | 836 self.m.python( |
| 837 '%s%s - download-data' % (name, suffix), | 837 '%s%s - download-data' % (name, suffix), |
| 838 self.m.path['checkout'].join('tools', 'run-test.py'), | 838 self.m.path['checkout'].join('tools', 'run-tests.py'), |
| 839 ['--download-data-only', download_test], | 839 ['--download-data-only', download_test], |
| 840 cwd=self.m.path['checkout'], | 840 cwd=self.m.path['checkout'], |
| 841 step_test_data=step_test_data, | 841 step_test_data=step_test_data, |
| 842 ) | 842 ) |
| 843 self.m.python( | 843 self.m.python( |
| 844 '%s%s' % (name, suffix), | 844 '%s%s' % (name, suffix), |
| 845 self.m.path['checkout'].join('tools', 'run_perf.py'), | 845 self.m.path['checkout'].join('tools', 'run_perf.py'), |
| 846 full_args, | 846 full_args, |
| 847 cwd=self.m.path['checkout'], | 847 cwd=self.m.path['checkout'], |
| 848 step_test_data=step_test_data, | 848 step_test_data=step_test_data, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 properties = { | 904 properties = { |
| 905 'revision': self.revision, | 905 'revision': self.revision, |
| 906 'parent_got_revision': self.revision, | 906 'parent_got_revision': self.revision, |
| 907 'parent_got_revision_cp': self.revision_cp, | 907 'parent_got_revision_cp': self.revision_cp, |
| 908 } | 908 } |
| 909 properties.update(**additional_properties) | 909 properties.update(**additional_properties) |
| 910 self.m.trigger(*[{ | 910 self.m.trigger(*[{ |
| 911 'builder_name': builder_name, | 911 'builder_name': builder_name, |
| 912 'properties': properties, | 912 'properties': properties, |
| 913 } for builder_name in triggers]) | 913 } for builder_name in triggers]) |
| OLD | NEW |