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

Side by Side Diff: recipes/engine_tests/recipe_paths.py

Issue 2669033007: [recipe_engine] Fix a couple path-related bugs. (Closed)
Patch Set: Fix remainder of presubmit tests Created 3 years, 10 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
OLDNEW
1 # Copyright 2015 The LUCI Authors. All rights reserved. 1 # Copyright 2015 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Tests that recipes have access to names, resources and their package.""" 5 """Tests that recipes have access to names, resources and their package."""
6 6
7 DEPS = [ 7 DEPS = [
8 'path', 8 'path',
9 'python', 9 'python',
10 'step', 10 'step',
11 ] 11 ]
12 12
13 def RunSteps(api): 13 def RunSteps(api):
14 api.step('recipe_name', ['echo', api.name]) 14 api.step('recipe_name', ['echo', 'recipe name is', api.name])
15 api.python('some_resource', api.resource('hello.py')) 15 api.python('some_resource', api.resource('hello.py'))
16 api.step('package_root', ['echo', api.package_repo_resource('file', 'path')]) 16 api.step('package_root', ['echo', api.package_repo_resource('file', 'path')])
17 17
18 def GenTests(api): 18 def GenTests(api):
19 yield api.test('basic') 19 yield api.test('basic')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698