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

Side by Side Diff: recipe_modules/platform/example.py

Issue 2909983003: [loader] Make recipe engine support examples/ module subdir (Closed)
Patch Set: Created 3 years, 6 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
(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 DEPS = [
6 'platform',
7 'step',
8 ]
9
10 def RunSteps(api):
11 step_result = api.step('platform things', cmd=None)
12 step_result.presentation.logs['name'] = [api.platform.name]
13 step_result.presentation.logs['bits'] = [str(api.platform.bits)]
14 step_result.presentation.logs['arch'] = [api.platform.arch]
15 step_result.presentation.logs['cpu_count'] = [str(api.platform.cpu_count)]
16
17
18 def GenTests(api):
19 yield api.test('linux64') + api.platform('linux', 64)
20 yield api.test('mac64') + api.platform('mac', 64)
21 yield api.test('win32') + api.platform('win', 32)
22 yield api.test('four_cores') + api.platform.cpu_count(4)
OLDNEW
« no previous file with comments | « recipe_modules/path/examples/full.expected/win_swarming.json ('k') | recipe_modules/platform/example.expected/four_cores.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698