Chromium Code Reviews| Index: scripts/slave/unittests/recipes_test.py |
| diff --git a/scripts/slave/unittests/recipes_test.py b/scripts/slave/unittests/recipes_test.py |
| index f568ca2de6c0f1885904e86a5e4c41652580f129..cdf5923c3aff02301ff5c47f010727b77d39a488 100755 |
| --- a/scripts/slave/unittests/recipes_test.py |
| +++ b/scripts/slave/unittests/recipes_test.py |
| @@ -119,11 +119,12 @@ def execute_test_case(test_fn, recipe_path): |
| bp = test_data.get('build_properties', {}) |
| fp = test_data.get('factory_properties', {}) |
| td = test_data.get('test_data', {}) |
| + me = test_data.get('mock_path_exists', []) |
| fp['recipe'] = os.path.basename(os.path.splitext(recipe_path)[0]) |
| stream = annotator.StructuredAnnotationStream(stream=open(os.devnull, 'w')) |
| with cover(): |
| - with recipe_util.mock_paths(): |
| + with recipe_util.mock_paths(mock_path_exists=me): |
|
iannucci
2013/05/20 19:41:38
Ah, I guess this is implicitly an empty list here
|
| step_data = annotated_run.run_steps(stream, bp, fp, td).steps_ran.values() |
| return [s.step for s in step_data] |