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

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

Issue 2512253002: Add name, package_repo_resource and resource support to recipe scripts. (Closed)
Patch Set: Created 4 years, 1 month 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
(Empty)
1 # Copyright 2015 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file.
4
5 """Tests that recipes have access to names, resources and their package."""
6
7 DEPS = [
8 'step',
9 'path',
nodir 2016/11/18 22:42:25 sort?
iannucci 2016/11/19 00:00:57 Done.
10 ]
11
12 def RunSteps(api):
13 api.step('recipe_name', ['echo', api.name])
14 api.step('some_resource', ['echo', api.resource('something.py')])
15 api.step('package_root', ['echo', api.package_repo_resource('path', 'to', 'fil e')])
16
17 def GenTests(api):
18 yield api.test('basic')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698