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

Side by Side Diff: tests/gclient_scm_test.py

Issue 438012: Call git diff --name-status with a relative path.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 11 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « git_cl_hooks.py ('k') | tests/scm_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright 2008-2009 Google Inc. All Rights Reserved. 3 # Copyright 2008-2009 Google Inc. All Rights Reserved.
4 # 4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License. 6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at 7 # You may obtain a copy of the License at
8 # 8 #
9 # http://www.apache.org/licenses/LICENSE-2.0 9 # http://www.apache.org/licenses/LICENSE-2.0
10 # 10 #
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 BaseTestCase.setUp(self) 59 BaseTestCase.setUp(self)
60 self.root_dir = self.Dir() 60 self.root_dir = self.Dir()
61 self.args = self.Args() 61 self.args = self.Args()
62 self.url = self.Url() 62 self.url = self.Url()
63 self.relpath = 'asf' 63 self.relpath = 'asf'
64 64
65 def testDir(self): 65 def testDir(self):
66 members = [ 66 members = [
67 'COMMAND', 'Capture', 'CaptureHeadRevision', 'CaptureInfo', 67 'COMMAND', 'Capture', 'CaptureHeadRevision', 'CaptureInfo',
68 'CaptureStatus', 'DiffItem', 'FullUrlForRelativeUrl', 'GetEmail', 68 'CaptureStatus', 'DiffItem', 'FullUrlForRelativeUrl', 'GetEmail',
69 'GetFileProperty', 'IsMoved', 'ReadEntries', 'ReadSimpleAuth', 'Run', 69 'GetFileProperty', 'IsMoved', 'ReadSimpleAuth', 'Run',
70 'RunAndFilterOutput', 'RunAndGetFileList', 70 'RunAndFilterOutput', 'RunAndGetFileList',
71 'RunCommand', 'cleanup', 'diff', 'export', 'pack', 'relpath', 'revert', 71 'RunCommand', 'cleanup', 'diff', 'export', 'pack', 'relpath', 'revert',
72 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url', 72 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url',
73 ] 73 ]
74 74
75 # If you add a member, be sure to add the relevant test! 75 # If you add a member, be sure to add the relevant test!
76 self.compareMembers(self._scm_wrapper(), members) 76 self.compareMembers(self._scm_wrapper(), members)
77 77
78 def testUnsupportedSCM(self): 78 def testUnsupportedSCM(self):
79 args = [self.url, self.root_dir, self.relpath] 79 args = [self.url, self.root_dir, self.relpath]
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 relpath=self.relpath) 514 relpath=self.relpath)
515 rev_info = scm.revinfo(options, (), None) 515 rev_info = scm.revinfo(options, (), None)
516 self.assertEquals(rev_info, '069c602044c5388d2d15c3f875b057c852003458') 516 self.assertEquals(rev_info, '069c602044c5388d2d15c3f875b057c852003458')
517 517
518 518
519 if __name__ == '__main__': 519 if __name__ == '__main__':
520 import unittest 520 import unittest
521 unittest.main() 521 unittest.main()
522 522
523 # vim: ts=2:sw=2:tw=80:et: 523 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « git_cl_hooks.py ('k') | tests/scm_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698