Chromium Code Reviews| Index: PRESUBMIT.py |
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
| index 1412b2b95f09222efe8a8e27c93618ecc4ac8377..25b8931ae6ca78634bbd57b608ed25c3096c1221 100644 |
| --- a/PRESUBMIT.py |
| +++ b/PRESUBMIT.py |
| @@ -169,6 +169,17 @@ def _ToolFlags(input_api, output_api): |
| return results |
| +def _RecipeSimulationTest(input_api, output_api): |
| + """Run the recipe simulation test.""" |
| + results = [] |
| + recipes_py = os.path.join('infra', 'bots', 'recipes.py') |
| + try: |
| + subprocess.check_output(['python', recipes_py, 'simulation_test']) |
| + except subprocess.CalledProcessError as e: |
| + results.append(e.output) |
| + return results |
| + |
| + |
| def _CommonChecks(input_api, output_api): |
| """Presubmit checks common to upload and commit.""" |
| results = [] |
| @@ -191,6 +202,7 @@ def _CommonChecks(input_api, output_api): |
| results.extend(_CopyrightChecks(input_api, output_api, |
| source_file_filter=sources)) |
| results.extend(_ToolFlags(input_api, output_api)) |
| + results.extend(_RecipeSimulationTest(input_api, output_api)) |
|
rmistry
2016/07/26 18:00:38
How long does this take to run? should this only r
borenet
2016/07/26 18:08:45
< 5 seconds. I didn't notice a difference.
|
| return results |