Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Side by Side Diff: scripts/slave/recipe_modules/chromium/test_api.py

Issue 1819613002: Flip remaining chromium_gn bots to the chromium recipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: add new expectation files Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 from recipe_engine import recipe_test_api 5 from recipe_engine import recipe_test_api
6 6
7 7
8 class ChromiumTestApi(recipe_test_api.RecipeTestApi): 8 class ChromiumTestApi(recipe_test_api.RecipeTestApi):
9 def gen_tests_for_builders(self, builder_dict, overrides=None): 9 def gen_tests_for_builders(self, builder_dict, overrides=None):
10 # TODO: crbug.com/354674. Figure out where to put "simulation" 10 # TODO: crbug.com/354674. Figure out where to put "simulation"
(...skipping 18 matching lines...) Expand all
29 ) 29 )
30 if mastername.startswith('tryserver'): 30 if mastername.startswith('tryserver'):
31 test += self.m.properties.tryserver(buildername=buildername, 31 test += self.m.properties.tryserver(buildername=buildername,
32 mastername=mastername) 32 mastername=mastername)
33 else: 33 else:
34 test += self.m.properties.generic(buildername=buildername, 34 test += self.m.properties.generic(buildername=buildername,
35 mastername=mastername) 35 mastername=mastername)
36 36
37 override_step_data = overrides.get(mastername, {}).get(buildername, 37 override_step_data = overrides.get(mastername, {}).get(buildername,
38 None) 38 None)
39 if override_step_data: 39 if override_step_data: # pragma: nocover
40 test += override_step_data 40 # No tests currently use this, but it would be really
41 # confusing if 'override_step_data' wasn't supported.
42 test += override_step_data
41 yield test 43 yield test
42 44
43 # The following data was generated by running 'gyp_chromium 45 # The following data was generated by running 'gyp_chromium
44 # --analyzer' with input JSON files corresponding to changes 46 # --analyzer' with input JSON files corresponding to changes
45 # affecting these targets. 47 # affecting these targets.
46 @property 48 @property
47 def analyze_builds_nothing(self): 49 def analyze_builds_nothing(self):
48 return self.m.json.output({ 50 return self.m.json.output({
49 'status': 'No dependencies', 51 'status': 'No dependencies',
50 'compile_targets': [], 52 'compile_targets': [],
51 'test_targets': [], 53 'test_targets': [],
52 }) 54 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698