| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # Exposes the builder and recipe configurations to GenTests in recipes. | 5 # Exposes the builder and recipe configurations to GenTests in recipes. |
| 6 | 6 |
| 7 from slave import recipe_test_api | 7 from recipe_engine import recipe_test_api |
| 8 from . import builders | 8 from . import builders |
| 9 | 9 |
| 10 class V8TestApi(recipe_test_api.RecipeTestApi): | 10 class V8TestApi(recipe_test_api.RecipeTestApi): |
| 11 BUILDERS = builders.BUILDERS | 11 BUILDERS = builders.BUILDERS |
| 12 SLOWEST_TESTS = [ | 12 SLOWEST_TESTS = [ |
| 13 { | 13 { |
| 14 'name': 'mjsunit/Cool.Test', | 14 'name': 'mjsunit/Cool.Test', |
| 15 'flags': ['-f'], | 15 'flags': ['-f'], |
| 16 'command': 'd8 -f mjsunit/Cool.Test', | 16 'command': 'd8 -f mjsunit/Cool.Test', |
| 17 'duration': 61.0028, | 17 'duration': 61.0028, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 @staticmethod | 191 @staticmethod |
| 192 def perf_failures(has_failures): | 192 def perf_failures(has_failures): |
| 193 return has_failures | 193 return has_failures |
| 194 | 194 |
| 195 def __call__(self, test_failures=False, wrong_results=False, | 195 def __call__(self, test_failures=False, wrong_results=False, |
| 196 perf_failures=False, flakes=False): | 196 perf_failures=False, flakes=False): |
| 197 return (self.test_failures(test_failures) + | 197 return (self.test_failures(test_failures) + |
| 198 self.wrong_results(wrong_results) + | 198 self.wrong_results(wrong_results) + |
| 199 self.flakes(flakes) + | 199 self.flakes(flakes) + |
| 200 self.perf_failures(perf_failures)) | 200 self.perf_failures(perf_failures)) |
| OLD | NEW |