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

Unified Diff: recipe_modules/raw_io/example.py

Issue 1906323003: recipe engine: extract infra-specific paths out of the engine (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: tmp Created 4 years, 8 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/raw_io/example.py
diff --git a/recipe_modules/raw_io/example.py b/recipe_modules/raw_io/example.py
index ba8bb6d83ada6bdd4a6b94dd75250f9a8e599f94..a2417a958101235836783fa29bdec891639e1b29 100644
--- a/recipe_modules/raw_io/example.py
+++ b/recipe_modules/raw_io/example.py
@@ -49,14 +49,14 @@ def RunSteps(api):
# leak_to coverage.
step_result = api.step(
'leak stdout', ['echo', 'leaking'],
- stdout=api.raw_io.output(leak_to=api.path['slave_build'].join('out.txt')),
+ stdout=api.raw_io.output(leak_to=api.path['tmp'].join('out.txt')),
step_test_data=(
lambda: api.raw_io.test_api.stream_output('leaking\n')))
assert step_result.stdout == 'leaking\n'
api.step('list temp dir', ['ls', api.raw_io.output_dir()])
api.step('leak dir', ['ls', api.raw_io.output_dir(
- leak_to=api.path['slave_build'].join('out'))])
+ leak_to=api.path['tmp'].join('out'))])
# Example of overriding default mocked output for a single named output.
step_result = api.python.inline(
« no previous file with comments | « recipe_modules/python/example.expected/basic.json ('k') | recipe_modules/raw_io/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698