| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import re | 5 import re |
| 6 | 6 |
| 7 from slave import recipe_api | 7 from recipe_engine import recipe_api |
| 8 from slave import recipe_util | 8 from recipe_engine import util as recipe_util |
| 9 | 9 |
| 10 from . import builders | 10 from . import builders |
| 11 from . import steps | 11 from . import steps |
| 12 | 12 |
| 13 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder): | 13 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder): |
| 14 def __init__(self, api, tests): | 14 def __init__(self, api, tests): |
| 15 self.raw = api.m.raw_io.input('\n'.join(tests)) | 15 self.raw = api.m.raw_io.input('\n'.join(tests)) |
| 16 super(TestLauncherFilterFileInputPlaceholder, self).__init__() | 16 super(TestLauncherFilterFileInputPlaceholder, self).__init__() |
| 17 | 17 |
| 18 def render(self, test): | 18 def render(self, test): |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 '--output', self.m.json.output(), | 777 '--output', self.m.json.output(), |
| 778 '--', | 778 '--', |
| 779 ] + self.get_common_args_for_scripts(), | 779 ] + self.get_common_args_for_scripts(), |
| 780 step_test_data=lambda: self.m.json.test_api.output({})) | 780 step_test_data=lambda: self.m.json.test_api.output({})) |
| 781 | 781 |
| 782 def download_lto_plugin(self): | 782 def download_lto_plugin(self): |
| 783 return self.m.python( | 783 return self.m.python( |
| 784 name='download LTO plugin', | 784 name='download LTO plugin', |
| 785 script=self.m.path['checkout'].join( | 785 script=self.m.path['checkout'].join( |
| 786 'build', 'download_gold_plugin.py')) | 786 'build', 'download_gold_plugin.py')) |
| OLD | NEW |