| 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)
|
|
|