OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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=E1103 | 8 # pylint: disable=E1103 |
9 | 9 |
10 # Import before super_mox to keep valid references. | 10 # Import before super_mox to keep valid references. |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 class OptionsObject(object): | 677 class OptionsObject(object): |
678 def __init__(self, verbose=False, revision=None): | 678 def __init__(self, verbose=False, revision=None): |
679 self.verbose = verbose | 679 self.verbose = verbose |
680 self.revision = revision | 680 self.revision = revision |
681 self.manually_grab_svn_rev = True | 681 self.manually_grab_svn_rev = True |
682 self.deps_os = None | 682 self.deps_os = None |
683 self.force = False | 683 self.force = False |
684 self.reset = False | 684 self.reset = False |
685 self.nohooks = False | 685 self.nohooks = False |
686 self.merge = False | 686 self.merge = False |
| 687 self.jobs = 1 |
687 self.delete_unversioned_trees = False | 688 self.delete_unversioned_trees = False |
688 | 689 |
689 sample_git_import = """blob | 690 sample_git_import = """blob |
690 mark :1 | 691 mark :1 |
691 data 6 | 692 data 6 |
692 Hello | 693 Hello |
693 | 694 |
694 blob | 695 blob |
695 mark :2 | 696 mark :2 |
696 data 4 | 697 data 4 |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 | 1190 |
1190 if __name__ == '__main__': | 1191 if __name__ == '__main__': |
1191 if '-v' in sys.argv: | 1192 if '-v' in sys.argv: |
1192 logging.basicConfig( | 1193 logging.basicConfig( |
1193 level=logging.DEBUG, | 1194 level=logging.DEBUG, |
1194 format='%(asctime).19s %(levelname)s %(filename)s:' | 1195 format='%(asctime).19s %(levelname)s %(filename)s:' |
1195 '%(lineno)s %(message)s') | 1196 '%(lineno)s %(message)s') |
1196 unittest.main() | 1197 unittest.main() |
1197 | 1198 |
1198 # vim: ts=2:sw=2:tw=80:et: | 1199 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |