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

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: once more... 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
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..81cde42dbe03c14bad36cd4253a10e5cb6dceee8 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', self.name),
followup_fn=inline_followup, **kwargs)

Powered by Google App Engine
This is Rietveld 408576698