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

Side by Side Diff: scripts/slave/recipe_modules/legion/api.py

Issue 1820073003: Update recipes/recipe_modules in build/ for indexing output placeholders by names. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Roll recipe_engine and depot_tools Created 4 years, 9 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 Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import recipe_api 5 from recipe_engine import recipe_api
6 6
7 7
8 class LegionApi(recipe_api.RecipeApi): 8 class LegionApi(recipe_api.RecipeApi):
9 """Provides a recipes interface for the Legion framework.""" 9 """Provides a recipes interface for the Legion framework."""
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 for name, value in config['dimensions'].iteritems(): 100 for name, value in config['dimensions'].iteritems():
101 cmd.extend(['--dimension', name, value]) 101 cmd.extend(['--dimension', name, value])
102 for name, value in config['controller_vars'].iteritems(): 102 for name, value in config['controller_vars'].iteritems():
103 cmd.extend(['--controller-var', name, value]) 103 cmd.extend(['--controller-var', name, value])
104 for task in config['tasks']: 104 for task in config['tasks']:
105 cmd.extend(['--task', task['name'], task['path']]) 105 cmd.extend(['--task', task['name'], task['path']])
106 106
107 step_result = self.m.python( 107 step_result = self.m.python(
108 'Running test for %s' % config['name'], 108 'Running test for %s' % config['name'],
109 self.legion_path, 109 self.legion_path,
110 cmd) 110 cmd,
111 stdout=self.m.raw_io.output())
111 return step_result.stdout 112 return step_result.stdout
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/legion/__init__.py ('k') | scripts/slave/recipe_modules/legion/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698