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

Unified Diff: recipe_modules/shutil/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/shutil/example.py
diff --git a/recipe_modules/shutil/example.py b/recipe_modules/shutil/example.py
index 16ac2782a13308a65150c39d7670b6123ff3a297..0fd41a96650fce89d9ae58741e718ffe0646d24a 100644
--- a/recipe_modules/shutil/example.py
+++ b/recipe_modules/shutil/example.py
@@ -51,11 +51,11 @@ def RunSteps(api):
try:
# copytree
content = 'some file content'
- tmp_dir = api.path['slave_build'].join('copytree_example_tmp')
+ tmp_dir = api.path['tmp'].join('copytree_example_tmp')
api.shutil.makedirs('makedirs', tmp_dir)
path = tmp_dir.join('dummy_file')
api.shutil.write('write %s' % path, path, content)
- new_tmp = api.path['slave_build'].join('copytree_example_tmp2')
+ new_tmp = api.path['tmp'].join('copytree_example_tmp2')
new_path = new_tmp.join('dummy_file')
api.shutil.copytree('copytree', tmp_dir, new_tmp)
actual_content = api.shutil.read('read %s' % new_path, new_path,
« no previous file with comments | « recipe_modules/raw_io/example.expected/basic.json ('k') | recipe_modules/shutil/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698