Commit b75db515 authored by msb@google.com's avatar msb@google.com

gclient_scm: add test to catch bug fixed by r208010

Review URL: http://codereview.chromium.org/214017

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26577 0039d316-1c4b-4281-b951-d872f2087c98
parent de754ac6
......@@ -1117,6 +1117,8 @@ class SCMWrapperTestCase(GClientBaseTestCase):
relpath=self.relpath)
file_list = []
scm.revert(options, self.args, file_list)
self.assertEquals(sorted(file_list), sorted([os.path.join(base_path, 'a'),
os.path.join(base_path, 'b')]))
def testRevertUnversionedUnexpectedFile(self):
options = self.Options(verbose=True)
......@@ -1137,6 +1139,8 @@ class SCMWrapperTestCase(GClientBaseTestCase):
relpath=self.relpath)
file_list = []
scm.revert(options, self.args, file_list)
# TODO(msb): fix bug (file_list contains dupes) and enable assertion
#self.assertEquals(file_list, [os.path.join(base_path, 'a')])
def testStatus(self):
options = self.Options(verbose=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment