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

Unified Diff: tests/gclient_smoketest.py

Issue 2923005: Add testing for a solution entry where url = None. (Closed)
Patch Set: merged with HEAD 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 | « gclient.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 c6906cf41f2748b4ad6195ca1805bdb1be5a064d..e10840d5c39d9d7a2ba7a7cb5c10f5462a9092e7 100755
--- a/tests/gclient_smoketest.py
+++ b/tests/gclient_smoketest.py
@@ -194,6 +194,26 @@ class GClientSmoke(GClientSmokeBase):
self.check(('', err, 2), results)
self.assertFalse(os.path.exists(join(self.root_dir, '.gclient')))
+ def testSolutionNone(self):
+ results = self.gclient(['config', '--spec',
+ 'solutions=[{"name": "./", "url": None}]'])
+ self.check(('', '', 0), results)
+ results = self.gclient(['sync'])
+ self.check(('', '', 0), results)
+ self.assertTree({})
+ results = self.gclient(['revinfo'])
+ self.check(('./: None\n', '', 0), results)
+ self.check(('', '', 0), self.gclient(['cleanup']))
+ self.check(('', '', 0), self.gclient(['diff']))
+ self.check(('', '', 0), self.gclient(['export', 'foo']))
+ self.assertTree({})
+ self.check(('', '', 0), self.gclient(['pack']))
+ self.check(('', '', 0), self.gclient(['revert']))
+ self.assertTree({})
+ self.check(('', '', 0), self.gclient(['runhooks']))
+ self.assertTree({})
+ self.check(('', '', 0), self.gclient(['status']))
+
class GClientSmokeSVN(GClientSmokeBase):
def setUp(self):
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698