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

Side by Side Diff: tests/gclient_scm_test.py

Issue 7484002: Fix git-cl --contributor flag support for presubmit checks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Fixed whth --contributor is not used, duh Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « git_cl.py ('k') | no next file » | 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unit tests for gclient_scm.py.""" 6 """Unit tests for gclient_scm.py."""
7 7
8 # pylint: disable=E1101,E1103,W0403 8 # pylint: disable=E1101,E1103,W0403
9 9
10 # Import before super_mox to keep valid references. 10 # Import before super_mox to keep valid references.
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 """This class doesn't use pymox.""" 446 """This class doesn't use pymox."""
447 class OptionsObject(object): 447 class OptionsObject(object):
448 def __init__(self, verbose=False, revision=None): 448 def __init__(self, verbose=False, revision=None):
449 self.verbose = verbose 449 self.verbose = verbose
450 self.revision = revision 450 self.revision = revision
451 self.manually_grab_svn_rev = True 451 self.manually_grab_svn_rev = True
452 self.deps_os = None 452 self.deps_os = None
453 self.force = False 453 self.force = False
454 self.reset = False 454 self.reset = False
455 self.nohooks = False 455 self.nohooks = False
456 self.merge = False
456 457
457 sample_git_import = """blob 458 sample_git_import = """blob
458 mark :1 459 mark :1
459 data 6 460 data 6
460 Hello 461 Hello
461 462
462 blob 463 blob
463 mark :2 464 mark :2
464 data 4 465 data 4
465 Bye 466 Bye
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 824
824 if __name__ == '__main__': 825 if __name__ == '__main__':
825 if '-v' in sys.argv: 826 if '-v' in sys.argv:
826 logging.basicConfig( 827 logging.basicConfig(
827 level=logging.DEBUG, 828 level=logging.DEBUG,
828 format='%(asctime).19s %(levelname)s %(filename)s:' 829 format='%(asctime).19s %(levelname)s %(filename)s:'
829 '%(lineno)s %(message)s') 830 '%(lineno)s %(message)s')
830 unittest.main() 831 unittest.main()
831 832
832 # vim: ts=2:sw=2:tw=80:et: 833 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « git_cl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698