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

Unified Diff: scripts/slave/recipe_modules/bot_update/example.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
Index: scripts/slave/recipe_modules/bot_update/example.py
diff --git a/scripts/slave/recipe_modules/bot_update/example.py b/scripts/slave/recipe_modules/bot_update/example.py
index 2d0c07a55e32fdd54ebf4b354e708ccb3ecf2ce3..d322300f600d8f253bd19e9f261d02eb96d6e05b 100644
--- a/scripts/slave/recipe_modules/bot_update/example.py
+++ b/scripts/slave/recipe_modules/bot_update/example.py
@@ -17,7 +17,8 @@ def GenSteps(api):
soln.name = 'src'
soln.url = 'svn://svn.chromium.org/chrome/trunk/src'
api.gclient.c = src_cfg
- yield api.bot_update.ensure_checkout()
+ force = True if api.properties.get('force') else False
+ yield api.bot_update.ensure_checkout(force=force)
def GenTests(api):
@@ -34,3 +35,14 @@ def GenTests(api):
patchset=654321,
patch_url='http://src.chromium.org/foo/bar'
)
+ yield api.test('forced') + api.properties(
+ mastername='experimental',
+ buildername='Experimental Builder',
+ slavename='somehost',
+ force=1
+ )
+ yield api.test('off') + api.properties(
+ mastername='experimental',
+ buildername='Experimental Builder',
+ slavename='somehost',
+ )
« no previous file with comments | « scripts/slave/recipe_modules/bot_update/api.py ('k') | scripts/slave/recipe_modules/bot_update/example.expected/forced.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698