Chromium Code Reviews| 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 258cce4d9267dcd2828953cf5bcea4eb747106f8..9c74340aa75f6edfdb29f5080d7bf8c805c5df4f 100755 |
| --- a/scripts/slave/unittests/recipe_lint_test.py |
| +++ b/scripts/slave/unittests/recipe_lint_test.py |
| @@ -6,11 +6,6 @@ |
| 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 |
| r'common\.skia\..*', |
| @@ -20,5 +15,12 @@ MODULES_WHITELIST = [ |
| r'common\.cros_chromite', |
| ] |
| -if __name__ == '__main__': |
| - lint_test.main(recipe_universe.get_universe(), whitelist=MODULES_WHITELIST) |
| +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]) |
|
iannucci
2015/09/15 00:10:48
This will work, but be aware that if MODULES_WHITE
luqui
2015/09/15 19:17:42
Acknowledged.
|
| +os.execvp(RECIPES_PY, args) |
| + |