OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 import sys | 7 import sys |
8 | 8 |
9 import test_env # pylint: disable=W0403,W0611 | 9 import test_env # pylint: disable=W0403,W0611 |
10 | 10 |
11 from recipe_engine import lint_test | 11 from recipe_engine import lint_test |
12 from slave import recipe_universe | |
13 | 12 |
14 MODULES_WHITELIST = [ | 13 MODULES_WHITELIST = [ |
15 # TODO(luqui): Move skia modules into recipe resources | 14 # TODO(luqui): Move skia modules into recipe resources |
16 r'common\.skia\..*', | 15 r'common\.skia\..*', |
17 r'slave\.skia\..*', | 16 r'slave\.skia\..*', |
18 | 17 |
19 # TODO(luqui): Move cros modules into recipe resources | 18 # TODO(luqui): Move cros modules into recipe resources |
20 r'common\.cros_chromite', | 19 r'common\.cros_chromite', |
21 ] | 20 ] |
22 | 21 |
| 22 RECIPES_CFG = os.path.join( |
| 23 os.path.dirname( |
| 24 os.path.dirname( |
| 25 os.path.dirname( |
| 26 os.path.dirname(os.path.abspath(__file__))))), |
| 27 'infra', 'config', 'recipes.cfg') |
| 28 |
23 if __name__ == '__main__': | 29 if __name__ == '__main__': |
24 lint_test.main(recipe_universe.get_universe(), whitelist=MODULES_WHITELIST) | 30 lint_test.main(RECIPES_CFG, whitelist=MODULES_WHITELIST) |
OLD | NEW |