Chromium Code Reviews| Index: scripts/slave/recipe_modules/bot_update/api.py |
| diff --git a/scripts/slave/recipe_modules/bot_update/api.py b/scripts/slave/recipe_modules/bot_update/api.py |
| index fe040e7945459da0abaedb24408db01e1a9172d2..0741a1f9c1a2242e197f5f4781e07b8ea6494a88 100644 |
| --- a/scripts/slave/recipe_modules/bot_update/api.py |
| +++ b/scripts/slave/recipe_modules/bot_update/api.py |
| @@ -57,7 +57,7 @@ class BotUpdateApi(recipe_api.RecipeApi): |
| def ensure_checkout(self, gclient_config=None, suffix=None, |
| patch=True, ref=None, update_presentation=True, |
| - **kwargs): |
| + force=False, **kwargs): |
| # We can re-use the gclient spec from the gclient module, since all the |
| # data bot_update needs is already configured into the gclient spec. |
| cfg = gclient_config or self.m.gclient.c |
| @@ -118,6 +118,9 @@ class BotUpdateApi(recipe_api.RecipeApi): |
| cmd = [item for flag_set in flags |
| for item in flag_set if flag_set[1] is not None] |
| + if force: # pragma: no cover |
|
hinoka
2014/05/16 23:33:48
Lets actually add coverage for this, via a fake bu
agable
2014/05/19 16:25:19
Done, PTAL.
|
| + cmd.append('--force') |
| + |
| # Inject Json output for testing. |
| git_mode = self.m.properties.get('mastername') in GIT_MASTERS |
| first_sln = cfg.solutions[0].name |