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

Unified Diff: recipe_modules/git_cl/example.py

Issue 1915833003: tryserver recipe_module: Add get_tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Minor things. Created 4 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 | « recipe_modules/git_cl/api.py ('k') | recipe_modules/git_cl/example.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/git_cl/example.py
diff --git a/recipe_modules/git_cl/example.py b/recipe_modules/git_cl/example.py
index cf1f002f081aee31870c35cf7a9deb8a3a5ff1ba..c76eac9541c9525b4cb6b4bbc957411663323245 100644
--- a/recipe_modules/git_cl/example.py
+++ b/recipe_modules/git_cl/example.py
@@ -14,16 +14,18 @@ DEPS = [
def RunSteps(api):
- res = api.git_cl.get_description(cwd=api.path.mkdtemp('fakee'))
- # Look ma, no hands! (Can pass in the cwd without configuring git_cl).
- api.step('echo', ['echo', res.stdout])
+ result = api.git_cl.get_description(
+ patch='https://code.review/123', codereview='rietveld', suffix='build')
+ api.git_cl.set_description(
+ 'bammmm', patch='https://code.review/123', codereview='rietveld')
+ api.step('echo', ['echo', result.stdout])
api.git_cl.set_config('basic')
api.git_cl.c.repo_location = api.path.mkdtemp('fakerepo')
api.step('echo', ['echo', api.git_cl.get_description().stdout])
- api.git_cl.set_description("new description woo")
+ api.git_cl.set_description('new description woo')
api.step('echo', ['echo', api.git_cl.get_description().stdout])
@@ -31,11 +33,11 @@ def GenTests(api):
yield (
api.test('basic') +
api.override_step_data(
- 'git_cl description', stdout=api.raw_io.output('hi')) +
+ 'git_cl description (build)', stdout=api.raw_io.output('hi')) +
api.override_step_data(
- 'git_cl description (2)', stdout=api.raw_io.output('hey')) +
+ 'git_cl description', stdout=api.raw_io.output('hey')) +
api.override_step_data(
- 'git_cl description (3)', stdout=api.raw_io.output(
+ 'git_cl description (2)', stdout=api.raw_io.output(
'new description woo'))
)
« no previous file with comments | « recipe_modules/git_cl/api.py ('k') | recipe_modules/git_cl/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698