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

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

Issue 1111413005: Some changes to allow recipes and modules to live noncentrally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Little bitty cleanup Created 5 years, 8 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/unittests/recipe_lint.py
diff --git a/scripts/slave/unittests/recipe_lint.py b/scripts/slave/unittests/recipe_lint.py
index ab8ca5dd58e8407877097338c73ab807c5255535..ba4d68b6fbfe7a4ea995327993e5beb5d883a5f6 100755
--- a/scripts/slave/unittests/recipe_lint.py
+++ b/scripts/slave/unittests/recipe_lint.py
@@ -45,7 +45,8 @@ def ImportsTest(recipe_path, recipe_name):
Returns a list of errors, or an empty list if there are no errors (duh).
"""
- recipe = recipe_loader.load_recipe(recipe_name)
+ loader = recipe_loader.ModuleLoader()
+ recipe = recipe_loader.load_recipe(recipe_name, loader)
for attr in dir(recipe):
val = getattr(recipe, attr)
if isinstance(val, types.ModuleType):

Powered by Google App Engine
This is Rietveld 408576698