| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |