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

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

Issue 2325913002: recipe_modules/chromite: Use "build_type". (Closed)
Patch Set: Keep variant API in for downstream compatibility. Created 4 years, 3 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
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 import base64 5 import json
6 import hashlib
7 6
8 from recipe_engine import recipe_test_api 7 from recipe_engine import recipe_test_api
9 8
10 DEPS = [ 9 DEPS = [
11 'gitiles', 10 'gitiles',
12 ] 11 ]
13 12
14 class ChromiteTestApi(recipe_test_api.RecipeTestApi): 13 class ChromiteTestApi(recipe_test_api.RecipeTestApi):
15 def seed_chromite_config(self, data, branch='master'): 14 def seed_chromite_config(self, data):
16 """Seeds step data for the Chromite configuration fetch. 15 """Seeds step data for the Chromite configuration fetch.
17 """ 16 """
18 return self.m.step.step_data('read chromite config', 17 return self.m.step.step_data('read chromite config',
19 self.m.json.output(data)) 18 self.m.json.output(data))
19
20 def add_chromite_config(self, config_name, build_type=None):
21 d = {
22 config_name: {
23 'build_type': build_type,
24 },
25 }
26 return self.seed_chromite_config(d)
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromite/config.py ('k') | scripts/slave/recipes/cros/cbuildbot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698