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

Unified Diff: unittests/repo_test_util.py

Issue 2669033007: [recipe_engine] Fix a couple path-related bugs. (Closed)
Patch Set: Fix remainder of presubmit tests Created 3 years, 11 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: unittests/repo_test_util.py
diff --git a/unittests/repo_test_util.py b/unittests/repo_test_util.py
index 664ab0ba40a1f4e5a0524fe64b93454b296af5be..4a1821d9cb72d60e5d94767d3b3669738094d940 100644
--- a/unittests/repo_test_util.py
+++ b/unittests/repo_test_util.py
@@ -113,19 +113,24 @@ class RepoTest(unittest.TestCase):
"""
repos = {}
for k in sorted(repo_deps):
+ deps=[package_pb2.DepSpec(
+ project_id='recipe_engine',
+ url="file://"+ROOT_DIR,
+ )] + [
+ package_pb2.DepSpec(
+ project_id=d,
+ url=repos[d]['root'],
+ branch='master',
+ revision=repos[d]['revision'],
+ )
+ for d in repo_deps[k]
+ ]
+
repos[k] = self.create_repo(k, package_pb2.Package(
api_version=1,
project_id=k,
recipes_path='',
- deps=[
- package_pb2.DepSpec(
- project_id=d,
- url=repos[d]['root'],
- branch='master',
- revision=repos[d]['revision'],
- )
- for d in repo_deps[k]
- ],
+ deps=deps,
))
return repos
« recipe_engine/package.py ('K') | « recipes/engine_tests/recipe_paths.expected/basic.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698