Chromium Code Reviews| Index: scripts/slave/recipe_modules/luci_config/example.py |
| diff --git a/scripts/slave/recipe_modules/luci_config/example.py b/scripts/slave/recipe_modules/luci_config/example.py |
| index aff5eb462308fafbfbc3af95e3c445f12c63000c..e0dca48588a515901b342dd2ed384939923b5213 100644 |
| --- a/scripts/slave/recipe_modules/luci_config/example.py |
| +++ b/scripts/slave/recipe_modules/luci_config/example.py |
| @@ -34,3 +34,18 @@ def GenTests(api): |
| api.luci_config.get_projects(['build']) + |
| api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent') |
| ) |
| + |
| + protobuf_lines = [ |
| + 'foo: 1', |
| + 'bar: "hi"', |
| + 'baz: {', |
| + ' the_thing: "hi"', |
| + ']', |
| + ] |
|
tandrii(chromium)
2016/06/14 12:22:51
why not """
foo: 1
...
""" it's easier to read
martiniss
2016/06/14 23:11:33
Fancy! Done.
|
| + |
| + yield ( |
| + api.test('protobuf') + |
| + api.luci_config.get_projects(['build']) + |
| + api.luci_config.get_project_config( |
| + 'build', 'recipes.cfg', '\n'.join(protobuf_lines)) |
| + ) |