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

Side by Side Diff: scripts/slave/recipe_modules/file/example.py

Issue 1930383002: build: add dependencies on infra_paths (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from recipe_engine.types import freeze 5 from recipe_engine.types import freeze
6 6
7 DEPS = [ 7 DEPS = [
8 'depot_tools/infra_paths',
8 'file', 9 'file',
9 'recipe_engine/path', 10 'recipe_engine/path',
10 'recipe_engine/raw_io', 11 'recipe_engine/raw_io',
11 'recipe_engine/step', 12 'recipe_engine/step',
12 ] 13 ]
13 14
14 15
15 TEST_CONTENTS = freeze({ 16 TEST_CONTENTS = freeze({
16 'simple': 'abcde', 17 'simple': 'abcde',
17 'spaces': 'abcde fgh', 18 'spaces': 'abcde fgh',
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 assert files == [str(tmp_dir.join('dummy_file'))], files 71 assert files == [str(tmp_dir.join('dummy_file'))], files
71 72
72 finally: 73 finally:
73 api.file.rmtree('cleanup', tmp_dir) 74 api.file.rmtree('cleanup', tmp_dir)
74 api.file.rmtree('cleanup2', new_tmp) 75 api.file.rmtree('cleanup2', new_tmp)
75 76
76 77
77 def GenTests(api): 78 def GenTests(api):
78 yield api.test('file_io') 79 yield api.test('file_io')
79 80
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/disk/__init__.py ('k') | scripts/slave/recipe_modules/gsutil/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698