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

Unified Diff: tests/gclient_scm_test.py

Issue 19359002: Allow gclient clone in non-empty directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: fixed another round of nits Created 7 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_scm.py ('k') | tests/gclient_smoketest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_scm_test.py
diff --git a/tests/gclient_scm_test.py b/tests/gclient_scm_test.py
index e91636854fdd7206042adcc3798063fe64ab188d..465d172fd90a33e1caa4272c102d329b1390af89 100755
--- a/tests/gclient_scm_test.py
+++ b/tests/gclient_scm_test.py
@@ -8,7 +8,6 @@
# pylint: disable=E1103
# Import before super_mox to keep valid references.
-from os import rename
from shutil import rmtree
from subprocess import Popen, PIPE, STDOUT
@@ -1026,21 +1025,6 @@ class ManagedGitWrapperTestCase(BaseGitWrapperTestCase):
self.assertRaisesError(exception, scm.update, options, (), [])
sys.stdout.close()
- def testUpdateNotGit(self):
- if not self.enabled:
- return
- options = self.Options()
- scm = gclient_scm.CreateSCM(url=self.url, root_dir=self.root_dir,
- relpath=self.relpath)
- git_path = join(self.base_path, '.git')
- rename(git_path, git_path + 'foo')
- exception = ('\n____ . at refs/heads/master\n'
- '\tPath is not a git repo. No .git dir.\n'
- '\tTo resolve:\n'
- '\t\trm -rf .\n'
- '\tAnd run gclient sync again\n')
- self.assertRaisesError(exception, scm.update, options, (), [])
-
def testRevinfo(self):
if not self.enabled:
return
« no previous file with comments | « gclient_scm.py ('k') | tests/gclient_smoketest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698