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

Unified Diff: unittests/repo_test_util.py

Issue 2785503002: Revert of [package.proto] convert deps from list to map. (Closed)
Patch Set: Created 3 years, 9 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 | « unittests/package_test.py ('k') | unittests/test_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittests/repo_test_util.py
diff --git a/unittests/repo_test_util.py b/unittests/repo_test_util.py
index 0134a9be5312bb84fa1a15fff0f52fd5f9f35552..6b684a2e2c7643dcac0472c79e14f536ab9ba2bd 100644
--- a/unittests/repo_test_util.py
+++ b/unittests/repo_test_util.py
@@ -120,15 +120,18 @@
"""
repos = {}
for k in sorted(repo_deps):
- deps = {
- 'recipe_engine': package_pb2.DepSpec(url="file://"+ROOT_DIR),
- }
- for d in repo_deps[k]:
- deps[d] = package_pb2.DepSpec(
+ 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,
« no previous file with comments | « unittests/package_test.py ('k') | unittests/test_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698