OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 """Runs simulation tests and lint on the standard recipe modules.""" | 3 """Runs simulation tests and lint on the standard recipe modules.""" |
4 | 4 |
5 import os | 5 import os |
6 import subprocess | 6 import subprocess |
7 | 7 |
8 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 8 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
9 | 9 |
10 def recipes_py(*args): | 10 def recipes_py(*args): |
11 subprocess.check_call([ | 11 subprocess.check_call([ |
12 os.path.join(ROOT_DIR, 'recipes.py'), | 12 os.path.join(ROOT_DIR, 'recipes.py'), |
13 '--package', os.path.join(ROOT_DIR, 'infra', 'config', 'recipes.cfg')] + | 13 '--package', os.path.join(ROOT_DIR, 'infra', 'config', 'recipes.cfg')] + |
14 list(args)) | 14 list(args)) |
15 | 15 |
16 recipes_py('simulation_test', '--threshold=90') | 16 recipes_py('simulation_test', '--threshold=91') |
17 recipes_py('lint') | 17 recipes_py('lint') |
OLD | NEW |