| 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 slave import recipe_test_api |
| 8 from slave.recipe_modules.v8 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, |
| 18 }, | 18 }, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 @recipe_test_api.mod_test_data | 131 @recipe_test_api.mod_test_data |
| 132 @staticmethod | 132 @staticmethod |
| 133 def perf_failures(has_failures): | 133 def perf_failures(has_failures): |
| 134 return has_failures | 134 return has_failures |
| 135 | 135 |
| 136 def __call__(self, test_failures=False, wrong_results=False, | 136 def __call__(self, test_failures=False, wrong_results=False, |
| 137 perf_failures=False): | 137 perf_failures=False): |
| 138 return (self.test_failures(test_failures) + | 138 return (self.test_failures(test_failures) + |
| 139 self.wrong_results(wrong_results) + | 139 self.wrong_results(wrong_results) + |
| 140 self.perf_failures(perf_failures)) | 140 self.perf_failures(perf_failures)) |
| OLD | NEW |