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

Unified Diff: depot_tools/tests/gclient_smoketest.py

Issue 3304007: Do not blindly assume that a .gclient file in a parent directory belongs to t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: '' Created 10 years, 4 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 | « depot_tools/gclient.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: depot_tools/tests/gclient_smoketest.py
===================================================================
--- depot_tools/tests/gclient_smoketest.py (revision 58346)
+++ depot_tools/tests/gclient_smoketest.py (working copy)
@@ -145,6 +145,14 @@
self.check(res, self.gclient(['sync']))
self.check(res, self.gclient(['update']))
+ def testWrongConfig(self):
+ # tested in testConfig.
+ self.gclient(['config', self.svn_base + 'trunk/src/'])
+ other_src = join(self.root_dir, 'src-other')
+ os.mkdir(other_src)
+ res = ('', 'Error: client not configured; see \'gclient config\'\n', 1)
+ self.check(res, self.gclient(['status'], other_src))
+
def testConfig(self):
p = join(self.root_dir, '.gclient')
def test(cmd, expected):
« no previous file with comments | « depot_tools/gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698