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

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 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
« no previous file with comments | « scripts/slave/recipes_test/android_webview_aosp.with_resync_projects.expected ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1aacac8715645f6fc7df912849a10201f8168651 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', {})
+ pm = test_data.get('paths_to_mock', [])
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(paths_to_mock=pm):
step_data = annotated_run.run_steps(stream, bp, fp, td).steps_ran.values()
return [s.step for s in step_data]
« no previous file with comments | « scripts/slave/recipes_test/android_webview_aosp.with_resync_projects.expected ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698