From b75db5152a25a9b7d785673458c8f4836bad3dc5 Mon Sep 17 00:00:00 2001 From: "msb@google.com" Date: Fri, 18 Sep 2009 16:50:16 +0000 Subject: [PATCH] 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 --- tests/gclient_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/gclient_test.py b/tests/gclient_test.py index 305736d53..8d9295cd2 100644 --- a/tests/gclient_test.py +++ b/tests/gclient_test.py @@ -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)