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

Unified Diff: tests/gclient_smoketest.py

Issue 18328003: Add a git cache for gclient sync operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Make cache_dir .gclient only, and move it to GitWrapper Created 7 years, 6 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 | « tests/gclient_scm_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_smoketest.py
diff --git a/tests/gclient_smoketest.py b/tests/gclient_smoketest.py
index b6d7e191e9f64aa3710bfe5c849abd1ca7ae0333..8c9a414d5dc2f47c6ae7122e1356b260b3f3eb04 100755
--- a/tests/gclient_smoketest.py
+++ b/tests/gclient_smoketest.py
@@ -170,7 +170,7 @@ class GClientSmoke(GClientSmokeBase):
"""testHelp: make sure no new command was added."""
result = self.gclient(['help'])
# Roughly, not too short, not too long.
- self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2100,
+ self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2300,
'Too much written to stdout: %d bytes' % len(result[0]))
self.assertEquals(0, len(result[1]))
self.assertEquals(0, result[2])
@@ -178,7 +178,7 @@ class GClientSmoke(GClientSmokeBase):
def testUnknown(self):
result = self.gclient(['foo'])
# Roughly, not too short, not too long.
- self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2100,
+ self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2300,
'Too much written to stdout: %d bytes' % len(result[0]))
self.assertEquals(0, len(result[1]))
self.assertEquals(0, result[2])
@@ -214,7 +214,8 @@ class GClientSmoke(GClientSmokeBase):
' },\n'
' "safesync_url": "",\n'
' },\n'
- ']\n') % self.svn_base)
+ ']\n'
+ 'cache_dir = None\n') % self.svn_base)
test(['config', self.git_base + 'repo_1', '--name', 'src'],
('solutions = [\n'
@@ -226,7 +227,8 @@ class GClientSmoke(GClientSmokeBase):
' },\n'
' "safesync_url": "",\n'
' },\n'
- ']\n') % self.git_base)
+ ']\n'
+ 'cache_dir = None\n') % self.git_base)
test(['config', 'foo', 'faa'],
'solutions = [\n'
@@ -238,7 +240,8 @@ class GClientSmoke(GClientSmokeBase):
' },\n'
' "safesync_url": "faa",\n'
' },\n'
- ']\n')
+ ']\n'
+ 'cache_dir = None\n')
test(['config', 'foo', '--deps', 'blah'],
'solutions = [\n'
@@ -250,7 +253,8 @@ class GClientSmoke(GClientSmokeBase):
' },\n'
' "safesync_url": "",\n'
' },\n'
- ']\n')
+ ']\n'
+ 'cache_dir = None\n')
test(['config', '--spec', '["blah blah"]'], '["blah blah"]')
« no previous file with comments | « tests/gclient_scm_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698