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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromite/test_api.py
diff --git a/scripts/slave/recipe_modules/chromite/test_api.py b/scripts/slave/recipe_modules/chromite/test_api.py
index cce615989597a7cf8084f302d10226b13df046ff..44e909e0ca07f35542d109235f9528c3d444de7d 100644
--- a/scripts/slave/recipe_modules/chromite/test_api.py
+++ b/scripts/slave/recipe_modules/chromite/test_api.py
@@ -2,8 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import base64
-import hashlib
+import json
from recipe_engine import recipe_test_api
@@ -12,8 +11,16 @@ DEPS = [
]
class ChromiteTestApi(recipe_test_api.RecipeTestApi):
- def seed_chromite_config(self, data, branch='master'):
+ def seed_chromite_config(self, data):
"""Seeds step data for the Chromite configuration fetch.
"""
return self.m.step.step_data('read chromite config',
self.m.json.output(data))
+
+ def add_chromite_config(self, config_name, build_type=None):
+ d = {
+ config_name: {
+ 'build_type': build_type,
+ },
+ }
+ return self.seed_chromite_config(d)
« 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