| Index: scripts/slave/recipe_modules/file/example.py
|
| diff --git a/scripts/slave/recipe_modules/file/example.py b/scripts/slave/recipe_modules/file/example.py
|
| index 3ed01050a71a5ff6044d4406a962a437af127ad6..0d117d49854723fe5a072ec1a6531c9a3d1e1698 100644
|
| --- a/scripts/slave/recipe_modules/file/example.py
|
| +++ b/scripts/slave/recipe_modules/file/example.py
|
| @@ -5,6 +5,7 @@
|
| from recipe_engine.types import freeze
|
|
|
| DEPS = [
|
| + 'depot_tools/infra_paths',
|
| 'file',
|
| 'recipe_engine/path',
|
| 'recipe_engine/raw_io',
|
| @@ -38,7 +39,7 @@ def RunSteps(api):
|
| api.step('print %s' % prefix, ['echo', temp_dir])
|
|
|
| # rmwildcard demo
|
| - api.file.rmwildcard('*.o', api.path['slave_build'])
|
| + api.file.rmwildcard('*.o', api.infra_paths['slave_build'])
|
|
|
| for name, content in TEST_CONTENTS.iteritems():
|
| api.file.write('write_%s' % name, 'tmp_file.txt', content)
|
| @@ -52,11 +53,11 @@ def RunSteps(api):
|
| try:
|
| # copytree
|
| content = 'some file content'
|
| - tmp_dir = api.path['slave_build'].join('copytree_example_tmp')
|
| + tmp_dir = api.infra_paths['slave_build'].join('copytree_example_tmp')
|
| api.file.makedirs('makedirs', tmp_dir)
|
| path = tmp_dir.join('dummy_file')
|
| api.file.write('write %s' % path, path, content)
|
| - new_tmp = api.path['slave_build'].join('copytree_example_tmp2')
|
| + new_tmp = api.infra_paths['slave_build'].join('copytree_example_tmp2')
|
| new_path = new_tmp.join('dummy_file')
|
| api.file.copytree('copytree', tmp_dir, new_tmp)
|
| actual_content = api.file.read('read %s' % new_path, new_path,
|
|
|