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

Unified Diff: scripts/slave/recipe_modules/python/api.py

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: License headers Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/recipe_modules/python/__init__.py ('k') | scripts/slave/recipe_modules/raw_io/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/python/api.py
diff --git a/scripts/slave/recipe_modules/python/api.py b/scripts/slave/recipe_modules/python/api.py
index 3e59bc987d91fc7bae0949605d695230d1524ed5..ac7a5fbdc2c657c9b515e5823a5070ed89ee26b4 100644
--- a/scripts/slave/recipe_modules/python/api.py
+++ b/scripts/slave/recipe_modules/python/api.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
from slave import recipe_api
+from slave import recipe_util
import textwrap
@@ -23,9 +24,9 @@ class PythonApi(recipe_api.RecipeApi):
program = textwrap.dedent(program)
compile(program, '<string>', 'exec', dont_inherit=1)
- @recipe_api.wrap_followup(kwargs)
+ @recipe_util.wrap_followup(kwargs)
def inline_followup(step_result):
step_result.presentation.logs['python.inline'] = program.splitlines()
- return self(name, recipe_api.InputDataPlaceholder(program, '.py'),
+ return self(name, self.m.raw_io.input(program, '.py'),
followup_fn=inline_followup, **kwargs)
« no previous file with comments | « scripts/slave/recipe_modules/python/__init__.py ('k') | scripts/slave/recipe_modules/raw_io/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698