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

Unified Diff: tests/fake_repos.py

Issue 2897010: Add a test more representative of what WebKit does. (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
« no previous file with comments | « no previous file | 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 51eacfd695dcca02baa1521778f0a725d489c64e..a797e64fcff36ac55b6b120367ff3a8a170fc213 100755
--- a/tests/fake_repos.py
+++ b/tests/fake_repos.py
@@ -389,6 +389,27 @@ deps = {
'invalid': '/does_not_exist',
}
"""
+ # WebKit abuses this.
+ fs['trunk/webkit/.gclient'] = """
+solutions = [
+ {
+ 'name': './',
+ 'url': None,
+ },
+]
+"""
+ fs['trunk/webkit/DEPS'] = """
+deps = {
+ 'foo/bar': 'svn://%(host)s/svn/trunk/third_party/foo@1'
+}
+
+hooks = [
+ {
+ 'pattern': '.*',
+ 'action': ['echo', 'foo'],
+ },
+]
+""" % { 'host': self.HOST }
self._commit_svn(fs)
def setUpGIT(self):
@@ -602,7 +623,10 @@ class FakeReposTestBase(unittest.TestCase):
for k, v in tree.iteritems():
if not k.startswith(old_root):
continue
- result[join(new_root, k[len(old_root) + 1:]).replace(os.sep, '/')] = v
+ item = k[len(old_root) + 1:]
+ if item.startswith('.'):
+ continue
+ result[join(new_root, item).replace(os.sep, '/')] = v
return result
def mangle_git_tree(self, *args):
« no previous file with comments | « no previous file | tests/gclient_smoketest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698