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 MODULES_WHITELIST = [ | 9 MODULES_WHITELIST = [ |
10 # TODO(luqui): Move skia modules into recipe resources | 10 # TODO(luqui): Move skia modules into recipe resources |
11 r'common\.skia\..*', | 11 r'common\.skia\..*', |
12 r'slave\.skia\..*', | 12 r'slave\.skia\..*', |
13 | |
14 # TODO(luqui): Move cros modules into recipe resources | |
15 r'common\.cros_chromite', | |
16 ] | 13 ] |
17 | 14 |
18 RECIPES_PY = os.path.join( | 15 RECIPES_PY = os.path.join( |
19 os.path.dirname(os.path.dirname(os.path.realpath(__file__))), | 16 os.path.dirname(os.path.dirname(os.path.realpath(__file__))), |
20 'recipes.py') | 17 'recipes.py') |
21 | 18 |
22 args = [sys.argv[0], 'lint'] | 19 args = [sys.argv[0], 'lint'] |
23 for pattern in MODULES_WHITELIST: | 20 for pattern in MODULES_WHITELIST: |
24 args.extend(['-w', pattern]) | 21 args.extend(['-w', pattern]) |
25 os.execvp(RECIPES_PY, args) | 22 os.execvp(RECIPES_PY, args) |
26 | 23 |
OLD | NEW |