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

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

Issue 1347263002: Revert of Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 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/unittests/annotated_run_test.py ('k') | scripts/slave/unittests/recipe_simulation_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/unittests/recipe_lint_test.py
diff --git a/scripts/slave/unittests/recipe_lint_test.py b/scripts/slave/unittests/recipe_lint_test.py
index 9c74340aa75f6edfdb29f5080d7bf8c805c5df4f..258cce4d9267dcd2828953cf5bcea4eb747106f8 100755
--- a/scripts/slave/unittests/recipe_lint_test.py
+++ b/scripts/slave/unittests/recipe_lint_test.py
@@ -5,6 +5,11 @@
import os
import sys
+
+import test_env # pylint: disable=W0403,W0611
+
+from recipe_engine import lint_test
+from slave import recipe_universe
MODULES_WHITELIST = [
# TODO(luqui): Move skia modules into recipe resources
@@ -15,12 +20,5 @@
r'common\.cros_chromite',
]
-RECIPES_PY = os.path.join(
- os.path.dirname(os.path.dirname(os.path.realpath(__file__))),
- 'recipes.py')
-
-args = [sys.argv[0], 'lint']
-for pattern in MODULES_WHITELIST:
- args.extend(['-w', pattern])
-os.execvp(RECIPES_PY, args)
-
+if __name__ == '__main__':
+ lint_test.main(recipe_universe.get_universe(), whitelist=MODULES_WHITELIST)
« no previous file with comments | « scripts/slave/unittests/annotated_run_test.py ('k') | scripts/slave/unittests/recipe_simulation_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698