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

Unified Diff: tests/fake_repos.py

Issue 2968005: Add testing for the From(File()) case, fix revinfo. (Closed)
Patch Set: Created 10 years, 5 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
« gclient.py ('K') | « gclient.py ('k') | tests/gclient_smoketest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/fake_repos.py
diff --git a/tests/fake_repos.py b/tests/fake_repos.py
index 981bd91962a7110c31a64ddfde9109648d54649a..51eacfd695dcca02baa1521778f0a725d489c64e 100755
--- a/tests/fake_repos.py
+++ b/tests/fake_repos.py
@@ -361,8 +361,10 @@ deps_os = {
fs = file_system(2, """
deps = {
'src/other': 'svn://%(host)s/svn/trunk/other',
- 'src/third_party/foo': From('src/other', 'foo/bar'),
- 'src/file/foo': File('svn://%(host)s/svn/trunk/third_party/foo/origin'),
+ # Load another DEPS and load a dependency from it. That's an example of
+ # WebKit's chromium checkout flow. Verify it works out of order.
+ 'src/third_party/foo': From('src/file/other', 'foo/bar'),
+ 'src/file/other': File('svn://%(host)s/svn/trunk/other/DEPS'),
}
# I think this is wrong to have the hooks run from the base of the gclient
# checkout. It's maybe a bit too late to change that behavior.
@@ -383,6 +385,8 @@ hooks = [
fs['trunk/other/DEPS'] = """
deps = {
'foo/bar': '/trunk/third_party/foo@1',
+ # Only the requested deps should be processed.
+ 'invalid': '/does_not_exist',
}
"""
self._commit_svn(fs)
« gclient.py ('K') | « gclient.py ('k') | tests/gclient_smoketest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698