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

Side by Side Diff: tests/gclient_scm_test.py

Issue 8227036: Reapply r104938 "Make svn update not prompt during a sync." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 2 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 | « scm.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/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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 class SVNWrapperTestCase(BaseTestCase): 66 class SVNWrapperTestCase(BaseTestCase):
67 class OptionsObject(object): 67 class OptionsObject(object):
68 def __init__(self, verbose=False, revision=None): 68 def __init__(self, verbose=False, revision=None):
69 self.verbose = verbose 69 self.verbose = verbose
70 self.revision = revision 70 self.revision = revision
71 self.manually_grab_svn_rev = True 71 self.manually_grab_svn_rev = True
72 self.deps_os = None 72 self.deps_os = None
73 self.force = False 73 self.force = False
74 self.reset = False 74 self.reset = False
75 self.nohooks = False 75 self.nohooks = False
76 # TODO(maruel): Test --jobs > 1.
77 self.jobs = 1
76 78
77 def Options(self, *args, **kwargs): 79 def Options(self, *args, **kwargs):
78 return self.OptionsObject(*args, **kwargs) 80 return self.OptionsObject(*args, **kwargs)
79 81
80 def setUp(self): 82 def setUp(self):
81 BaseTestCase.setUp(self) 83 BaseTestCase.setUp(self)
82 self.url = self.SvnUrl() 84 self.url = self.SvnUrl()
83 85
84 def testDir(self): 86 def testDir(self):
85 members = [ 87 members = [
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 891
890 if __name__ == '__main__': 892 if __name__ == '__main__':
891 if '-v' in sys.argv: 893 if '-v' in sys.argv:
892 logging.basicConfig( 894 logging.basicConfig(
893 level=logging.DEBUG, 895 level=logging.DEBUG,
894 format='%(asctime).19s %(levelname)s %(filename)s:' 896 format='%(asctime).19s %(levelname)s %(filename)s:'
895 '%(lineno)s %(message)s') 897 '%(lineno)s %(message)s')
896 unittest.main() 898 unittest.main()
897 899
898 # vim: ts=2:sw=2:tw=80:et: 900 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « scm.py ('k') | tests/scm_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698