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

Unified Diff: recipe_modules/generator_script/example.py

Issue 2245113002: Track step nesting in StreamEngine. (Closed) Base URL: https://github.com/luci/recipes-py@emit-initial-properties
Patch Set: Rebase, comments. Created 4 years, 3 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
Index: recipe_modules/generator_script/example.py
diff --git a/recipe_modules/generator_script/example.py b/recipe_modules/generator_script/example.py
index a57e0d79412280d3c9515e9e99879da8b0b9e648..d82657846cd13b94966a3fe5967a695a265ad2f0 100644
--- a/recipe_modules/generator_script/example.py
+++ b/recipe_modules/generator_script/example.py
@@ -73,6 +73,20 @@ def GenTests(api):
)
yield (
+ api.test('nested') +
+ api.properties(script_name='nested.py') +
+ api.generator_script(
+ 'nested.py',
+ {'name': 'grandparent', 'cmd': ['echo', 'grandparent']},
+ {'name': 'parent', 'step_nest_level': 1, 'cmd': ['echo', 'parent']},
+ {'name': 'child', 'step_nest_level': 2, 'cmd': ['echo', 'child']},
+ {'name': 'sibling', 'step_nest_level': 2, 'cmd': ['echo', 'sibling']},
+ {'name': 'uncle', 'step_nest_level': 1, 'cmd': ['echo', 'uncle']},
+ {'name': 'cousin', 'step_nest_level': 2, 'cmd': ['echo', 'cousin']},
+ )
+ )
+
+ yield (
api.test('malformed_command') +
api.properties(script_name='malformed.py') +
api.generator_script(
« no previous file with comments | « recipe_modules/generator_script/api.py ('k') | recipe_modules/generator_script/example.expected/nested.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698