OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """Runs simulation tests and lint on the recipes.""" | 7 """Runs simulation tests and lint on the recipes.""" |
8 | 8 |
9 import os | 9 import os |
10 import subprocess | 10 import subprocess |
11 | 11 |
12 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 12 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
13 | 13 |
14 def recipes_py(*args): | 14 def recipes_py(*args): |
15 subprocess.check_call([os.path.join(ROOT_DIR, 'recipes.py')] + list(args)) | 15 subprocess.check_call([os.path.join(ROOT_DIR, 'recipes.py')] + list(args)) |
16 | 16 |
17 recipes_py('simulation_test', '--threshold=92') | 17 recipes_py('simulation_test') |
18 recipes_py('lint') | 18 recipes_py('lint') |
OLD | NEW |