Index: depot_tools/tests/gclient_smoketest.py |
=================================================================== |
--- depot_tools/tests/gclient_smoketest.py (revision 58356) |
+++ depot_tools/tests/gclient_smoketest.py (working copy) |
@@ -145,6 +145,18 @@ |
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)) |
+ src = join(self.root_dir, 'src') |
+ os.mkdir(src) |
+ res = self.gclient(['status'], src) |
+ self.checkBlock(res[0], [('running', src)]) |
+ |
def testConfig(self): |
p = join(self.root_dir, '.gclient') |
def test(cmd, expected): |