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

Unified Diff: recipe_modules/bot_update/example.py

Issue 1837453002: Add --gerrit_no_reset for who need to use FETCH_HEAD revision. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: changed flag name Created 4 years, 9 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 | « recipe_modules/bot_update/api.py ('k') | recipe_modules/bot_update/example.expected/gerrit_no_reset.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/bot_update/example.py
diff --git a/recipe_modules/bot_update/example.py b/recipe_modules/bot_update/example.py
index 9e915331e53e19aac19100e97fa439a0168456ef..99362ffcfad05b8d5fff3324df833ddeb6a68c78 100644
--- a/recipe_modules/bot_update/example.py
+++ b/recipe_modules/bot_update/example.py
@@ -30,6 +30,7 @@ def RunSteps(api):
oauth2 = api.properties.get('oauth2', False)
root_solution_revision = api.properties.get('root_solution_revision')
suffix = api.properties.get('suffix')
+ gerrit_no_reset = True if api.properties.get('gerrit_no_reset') else False
api.bot_update.ensure_checkout(force=force,
no_shallow=no_shallow,
patch=patch,
@@ -38,7 +39,8 @@ def RunSteps(api):
refs=refs, patch_oauth2=oauth2,
clobber=clobber,
root_solution_revision=root_solution_revision,
- suffix=suffix)
+ suffix=suffix,
+ gerrit_no_reset=gerrit_no_reset)
def GenTests(api):
@@ -143,6 +145,12 @@ def GenTests(api):
slavename='somehost',
root_solution_revision='revision',
)
+ yield api.test('gerrit_no_reset') + api.properties(
+ mastername='experimental',
+ buildername='Experimental Builder',
+ slavename='somehost',
+ gerrit_no_reset=1
+ )
yield api.test('tryjob_v8') + api.properties(
mastername='tryserver.chromium.linux',
buildername='linux_rel',
« no previous file with comments | « recipe_modules/bot_update/api.py ('k') | recipe_modules/bot_update/example.expected/gerrit_no_reset.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698