Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Unified Diff: scripts/slave/unittests/recipes_test.py

Issue 14602020: Add an AOSP builder recipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: rebase on top of CL 15270004 Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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]

Powered by Google App Engine
This is Rietveld 408576698