| OLD | NEW | 
|     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 """Smoke tests for gclient.py. |     6 """Smoke tests for gclient.py. | 
|     7  |     7  | 
|     8 Shell out 'gclient' and run basic conformance tests. |     8 Shell out 'gclient' and run basic conformance tests. | 
|     9  |     9  | 
|    10 This test assumes GClientSmokeBase.URL_BASE is valid. |    10 This test assumes GClientSmokeBase.URL_BASE is valid. | 
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1021         ('trunk/third_party/foo@1', 'src/third_party/foo'), |  1021         ('trunk/third_party/foo@1', 'src/third_party/foo'), | 
|  1022         ('trunk/other@2', 'src/other'))) |  1022         ('trunk/other@2', 'src/other'))) | 
|  1023     tree['src/file/other/DEPS'] = ( |  1023     tree['src/file/other/DEPS'] = ( | 
|  1024         self.FAKE_REPOS.svn_revs[2]['trunk/other/DEPS']) |  1024         self.FAKE_REPOS.svn_revs[2]['trunk/other/DEPS']) | 
|  1025     tree['src/git_hooked1'] = 'git_hooked1' |  1025     tree['src/git_hooked1'] = 'git_hooked1' | 
|  1026     tree['src/git_hooked2'] = 'git_hooked2' |  1026     tree['src/git_hooked2'] = 'git_hooked2' | 
|  1027     tree['src/svn_hooked1'] = 'svn_hooked1' |  1027     tree['src/svn_hooked1'] = 'svn_hooked1' | 
|  1028     self.assertTree(tree) |  1028     self.assertTree(tree) | 
|  1029  |  1029  | 
|  1030   def testMultiSolutionsJobs(self): |  1030   def testMultiSolutionsJobs(self): | 
 |  1031     print >> sys.stderr, ( | 
 |  1032         'Warning: testMultiSolutionsJobs is temporarily disabled') | 
 |  1033     return | 
 |  1034     # unreachable code | 
 |  1035     # pylint: disable=W0101 | 
|  1031     if not self.enabled: |  1036     if not self.enabled: | 
|  1032       return |  1037       return | 
|  1033     self.gclient(['config', '--spec', |  1038     self.gclient(['config', '--spec', | 
|  1034         'solutions=[' |  1039         'solutions=[' | 
|  1035         '{"name": "src",' |  1040         '{"name": "src",' | 
|  1036         ' "url": "' + self.svn_base + 'trunk/src/"},' |  1041         ' "url": "' + self.svn_base + 'trunk/src/"},' | 
|  1037         '{"name": "src-git",' |  1042         '{"name": "src-git",' | 
|  1038         '"url": "' + self.git_base + 'repo_1"}]']) |  1043         '"url": "' + self.git_base + 'repo_1"}]']) | 
|  1039     self.parseGclient(['sync', '--deps', 'mac', '--jobs', '8'], |  1044     self.parseGclient(['sync', '--deps', 'mac', '--jobs', '8'], | 
|  1040         ['running', 'running', 'running', |  1045         ['running', 'running', 'running', | 
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1254  |  1259  | 
|  1255   if '-c' in sys.argv: |  1260   if '-c' in sys.argv: | 
|  1256     COVERAGE = True |  1261     COVERAGE = True | 
|  1257     sys.argv.remove('-c') |  1262     sys.argv.remove('-c') | 
|  1258     if os.path.exists('.coverage'): |  1263     if os.path.exists('.coverage'): | 
|  1259       os.remove('.coverage') |  1264       os.remove('.coverage') | 
|  1260     os.environ['COVERAGE_FILE'] = os.path.join( |  1265     os.environ['COVERAGE_FILE'] = os.path.join( | 
|  1261         os.path.dirname(os.path.dirname(os.path.abspath(__file__))), |  1266         os.path.dirname(os.path.dirname(os.path.abspath(__file__))), | 
|  1262         '.coverage') |  1267         '.coverage') | 
|  1263   unittest.main() |  1268   unittest.main() | 
| OLD | NEW |