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

Unified Diff: scripts/slave/unittests/recipes_test.py

Issue 187203005: Minor cleanup of some recipe framework code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rietveld >_< Created 6 years, 10 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_util.py ('k') | scripts/tools/show_me_the_modules.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/unittests/recipes_test.py
diff --git a/scripts/slave/unittests/recipes_test.py b/scripts/slave/unittests/recipes_test.py
index 72fbf0d1ac18396395b0e832598efa45b4bb3e53..8fdfb67f3572ec7a88161dbab305d0ebe1d7db8a 100755
--- a/scripts/slave/unittests/recipes_test.py
+++ b/scripts/slave/unittests/recipes_test.py
@@ -84,9 +84,9 @@ def expected_for(recipe_path, test_name):
def exec_test_file(recipe_name):
with cover():
- recipe = recipe_loader.LoadRecipe(recipe_name)
+ recipe = recipe_loader.load_recipe(recipe_name)
try:
- test_api = recipe_loader.CreateTestApi(recipe.DEPS)
+ test_api = recipe_loader.create_test_api(recipe.DEPS)
gen = recipe.GenTests(test_api)
except Exception, e:
print "Caught exception while processing %s: %s" % (recipe_name, e)
@@ -111,7 +111,8 @@ def execute_test_case(test_data, recipe_path, recipe_name):
stream = annotator.StructuredAnnotationStream(stream=open(os.devnull, 'w'))
def api(*args, **kwargs):
- return recipe_loader.CreateRecipeApi(test_data=test_data, *args, **kwargs)
+ return recipe_loader.create_recipe_api(
+ test_data=test_data, *args, **kwargs)
with cover():
recipe_config_types.ResetTostringFns()
« no previous file with comments | « scripts/slave/recipe_util.py ('k') | scripts/tools/show_me_the_modules.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698