OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The LUCI Authors. All rights reserved. | 2 # Copyright 2015 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed under the Apache License, Version 2.0 | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # that can be found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 """Runs simulation tests and lint on the standard recipe modules.""" | 6 """Runs simulation tests and lint on the standard recipe modules.""" |
7 | 7 |
8 import os | 8 import os |
9 import subprocess | 9 import subprocess |
10 | 10 |
11 import repo_test_util | 11 import repo_test_util |
12 from repo_test_util import ROOT_DIR | 12 from repo_test_util import ROOT_DIR |
13 | 13 |
14 def recipes_py(*args): | 14 def recipes_py(*args): |
15 subprocess.check_call([ | 15 subprocess.check_call([ |
16 os.path.join(ROOT_DIR, 'recipes.py'), '--use-bootstrap', | 16 os.path.join(ROOT_DIR, 'recipes.py'), '--use-bootstrap', |
17 '--package', os.path.join(ROOT_DIR, 'infra', 'config', 'recipes.cfg')] + | 17 '--package', os.path.join(ROOT_DIR, 'infra', 'config', 'recipes.cfg')] + |
18 list(args)) | 18 list(args)) |
19 | 19 |
20 # Run both current simulation test logic (simulation_test), and experimental | |
21 # (test). Eventually the former will be removed. | |
22 recipes_py('simulation_test') | |
23 recipes_py('test', 'run') | 20 recipes_py('test', 'run') |
24 | 21 |
25 recipes_py('lint') | 22 recipes_py('lint') |
OLD | NEW |