Chromium Code Reviews| 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..fb4f67ca5e7d11e9b4de463b6a931ae93cdb60c5 100644 |
| --- a/recipe_modules/git_cl/example.py |
| +++ b/recipe_modules/git_cl/example.py |
| @@ -14,28 +14,30 @@ 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") |
| + 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.git_cl.set_config("basic") |
|
iannucci
2016/05/12 00:25:52
I thought we liked single quotes...
martiniss
2016/05/13 19:23:56
We do! Fixed.
|
| + api.git_cl.c.repo_location = api.path.mkdtemp("fakerepo") |
| - api.step('echo', ['echo', api.git_cl.get_description().stdout]) |
| + api.step("echo", ["echo", api.git_cl.get_description().stdout]) |
| api.git_cl.set_description("new description woo") |
| - api.step('echo', ['echo', api.git_cl.get_description().stdout]) |
| + api.step("echo", ["echo", api.git_cl.get_description().stdout]) |
| def GenTests(api): |
| yield ( |
| - api.test('basic') + |
| + api.test("basic") + |
| api.override_step_data( |
| - 'git_cl description', stdout=api.raw_io.output('hi')) + |
| + "git_cl description", stdout=api.raw_io.output("hi")) + |
| api.override_step_data( |
| - 'git_cl description (2)', stdout=api.raw_io.output('hey')) + |
| + "git_cl description (2)", stdout=api.raw_io.output("hey")) + |
| api.override_step_data( |
| - 'git_cl description (3)', stdout=api.raw_io.output( |
| - 'new description woo')) |
| + "git_cl description (3)", stdout=api.raw_io.output( |
| + "new description woo")) |
| ) |