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
experimental/szager/collated-output
msb@google.com 16 years ago
parent de754ac6ad
commit b75db5152a

@ -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)

Loading…
Cancel
Save