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

Unified Diff: scripts/slave/recipe_modules/bot_update/test_api.py

Issue 288843003: Let bot_update recipe api force usage of bot_update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebase Created 6 years, 7 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/bot_update/example.expected/off.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f89769b56ce3cd09a48dc6d8aedd69db5d8f0488..bd664b1574fc3b50fba1a55acce93a8839b09536 100644
--- a/scripts/slave/recipe_modules/bot_update/test_api.py
+++ b/scripts/slave/recipe_modules/bot_update/test_api.py
@@ -11,11 +11,11 @@ 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):
+ revision_mapping, git_mode, force=False):
"""Deterministically synthesize json.output test data for gclient's
--output-json option.
"""
- active = bot_update.check_valid_host(master, builder, slave)
+ active = bot_update.check_valid_host(master, builder, slave) or force
output = {
'did_run': active
« no previous file with comments | « scripts/slave/recipe_modules/bot_update/example.expected/off.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698