| Index: scripts/slave/recipe_modules/bot_update/test_api.py
|
| diff --git a/scripts/slave/recipe_modules/bot_update/test_api.py b/scripts/slave/recipe_modules/bot_update/test_api.py
|
| index 22ed4968ca4bd6e7046ea00778fbc8980d5d480c..cb2d81b85e8a79cfe48a16db398a3ec112d93786 100644
|
| --- a/scripts/slave/recipe_modules/bot_update/test_api.py
|
| +++ b/scripts/slave/recipe_modules/bot_update/test_api.py
|
| @@ -11,7 +11,8 @@ from slave import recipe_test_api
|
|
|
| class BotUpdateTestApi(recipe_test_api.RecipeTestApi):
|
| def output_json(self, master, builder, slave, root, first_sln,
|
| - revision_mapping, git_mode, force=False, fail_patch=False):
|
| + revision_mapping, git_mode, force=False, fail_patch=False,
|
| + output_manifest=False):
|
| """Deterministically synthesize json.output test data for gclient's
|
| --output-json option.
|
| """
|
| @@ -41,6 +42,7 @@ class BotUpdateTestApi(recipe_test_api.RecipeTestApi):
|
| '%s_git' % property_name: self.gen_revision(project_name, True)
|
| for project_name, property_name in revision_mapping.iteritems()
|
| })
|
| +
|
| output.update({
|
| 'patch_root': root or first_sln,
|
| 'root': first_sln,
|
| @@ -48,6 +50,17 @@ class BotUpdateTestApi(recipe_test_api.RecipeTestApi):
|
| 'step_text': 'Some step text'
|
| })
|
|
|
| + if output_manifest:
|
| + output.update({
|
| + 'manifest': {
|
| + project_name: {
|
| + 'repository': 'https://fake.org/%s.git' % project_name,
|
| + 'revision': self.gen_revision(project_name, git_mode),
|
| + }
|
| + for project_name in revision_mapping
|
| + }
|
| + })
|
| +
|
| if fail_patch:
|
| output['log_lines'] = [('patch error', 'Patch failed to apply'),]
|
| output['patch_failure'] = True
|
|
|