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

Unified Diff: tests/gclient_scm_test.py

Issue 6613025: Improve SVN.Revert() to catch more corner cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 10 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 | « scm.py ('k') | tests/scm_unittest.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 b864a85100209d3fe36895a1e97b76eb85a745f6..5f3418f089a495e53ffeda54e48003ad39ca72e7 100755
--- a/tests/gclient_scm_test.py
+++ b/tests/gclient_scm_test.py
@@ -168,37 +168,6 @@ class SVNWrapperTestCase(BaseTestCase):
file_list = []
scm.revert(options, self.args, file_list)
- def testRevert2Files(self):
- options = self.Options(verbose=True)
- gclient_scm.os.path.isdir(self.base_path).AndReturn(True)
- items = [
- ('M ', 'a'),
- ('A ', 'b'),
- ]
- file_path1 = join(self.base_path, 'a')
- file_path2 = join(self.base_path, 'b')
- gclient_scm.scm.SVN.CaptureStatus(self.base_path).AndReturn(items)
- gclient_scm.os.path.exists(file_path1).AndReturn(True)
- gclient_scm.os.path.isfile(file_path1).AndReturn(True)
- gclient_scm.os.remove(file_path1)
- gclient_scm.os.path.exists(file_path2).AndReturn(True)
- gclient_scm.os.path.isfile(file_path2).AndReturn(True)
- gclient_scm.os.remove(file_path2)
- gclient_scm.scm.SVN.RunAndGetFileList(
- options.verbose,
- ['update', '--revision', 'BASE', '--ignore-externals'],
- cwd=self.base_path,
- file_list=mox.IgnoreArg())
-
- self.mox.ReplayAll()
- scm = self._scm_wrapper(url=self.url, root_dir=self.root_dir,
- relpath=self.relpath)
- file_list = []
- scm.revert(options, self.args, file_list)
- self.checkstdout(
- ('%s\n%s\n' % (join(self.base_path, 'a'),
- join(self.base_path, 'b'))))
-
def testRevertDirectory(self):
options = self.Options(verbose=True)
gclient_scm.os.path.isdir(self.base_path).AndReturn(True)
« no previous file with comments | « scm.py ('k') | tests/scm_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698