| 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'))
|
| )
|
|
|
|
|