| 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 """Integration tests for project.py.""" | 6 """Integration tests for project.py.""" |
| 7 | 7 |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import random | 10 import random |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 '^svn\\:\\/\\/chrome\\-svn\\/chrome/trunk/tools(|/.*)$', | 198 '^svn\\:\\/\\/chrome\\-svn\\/chrome/trunk/tools(|/.*)$', |
| 199 '^svn\\:\\/\\/chrome\\-svn\\.corp\\/chrome/trunk/tools(|/.*)$', | 199 '^svn\\:\\/\\/chrome\\-svn\\.corp\\/chrome/trunk/tools(|/.*)$', |
| 200 '^svn\\:\\/\\/chrome\\-svn\\.corp\\.google\\.com\\/chrome/trunk/' | 200 '^svn\\:\\/\\/chrome\\-svn\\.corp\\.google\\.com\\/chrome/trunk/' |
| 201 'tools(|/.*)$', | 201 'tools(|/.*)$', |
| 202 '^http\\:\\/\\/src\\.chromium\\.org\\/svn/trunk/tools(|/.*)$', | 202 '^http\\:\\/\\/src\\.chromium\\.org\\/svn/trunk/tools(|/.*)$', |
| 203 '^https\\:\\/\\/src\\.chromium\\.org\\/svn/trunk/tools(|/.*)$', | 203 '^https\\:\\/\\/src\\.chromium\\.org\\/svn/trunk/tools(|/.*)$', |
| 204 '^http\\:\\/\\/src\\.chromium\\.org\\/chrome/trunk/tools(|/.*)$', | 204 '^http\\:\\/\\/src\\.chromium\\.org\\/chrome/trunk/tools(|/.*)$', |
| 205 '^https\\:\\/\\/src\\.chromium\\.org\\/chrome/trunk/tools(|/.*)$', | 205 '^https\\:\\/\\/src\\.chromium\\.org\\/chrome/trunk/tools(|/.*)$', |
| 206 | 206 |
| 207 # git | 207 # git |
| 208 '^http\\:\\/\\/git\\.chromium\\.org\\/chromium\\/tools\\/' | 208 '^https?\\:\\/\\/git\\.chromium\\.org\\/git\\/chromium\\/tools\\/' |
| 209 '([a-z0-9\\-_]+)\\.git' + branch, | 209 '([a-z0-9\\-_]+)(?:\\.git)?' + branch, |
| 210 '^https\\:\\/\\/git\\.chromium\\.org\\/chromium\\/tools\\/' | 210 '^https?\\:\\/\\/git\\.chromium\\.org\\/chromium\\/tools\\/' |
| 211 '([a-z0-9\\-_]+)\\.git' + branch, | 211 '([a-z0-9\\-_]+)(?:\\.git)?' + branch, |
| 212 '^http\\:\\/\\/git\\.chromium\\.org\\/git\\/chromium\\/tools\\/' | 212 '^https?\\:\\/\\/chromium\\.googlesource\\.com\\/chromium\\/tools' |
| 213 '([a-z0-9\\-_]+)' + branch, | 213 '\\/([a-z0-9\\-_]+)(?:\\.git)?' + branch, |
| 214 '^https\\:\\/\\/git\\.chromium\\.org\\/git\\/chromium\\/tools\\/' | |
| 215 '([a-z0-9\\-_]+)' + branch, | |
| 216 '^http\\:\\/\\/git\\.chromium\\.org\\/git\\/chromium\\/tools\\/' | |
| 217 '([a-z0-9\\-_]+)\\.git' + branch, | |
| 218 '^https\\:\\/\\/git\\.chromium\\.org\\/git\\/chromium\\/tools\\/' | |
| 219 '([a-z0-9\\-_]+)\\.git' + branch, | |
| 220 '^https\\:\\/\\/chromium\\.googlesource\\.com\\/chromium\\/tools' | |
| 221 '\\/([a-z0-9\\-_]+)' + branch, | |
| 222 '^https\\:\\/\\/chromium\\.googlesource\\.com\\/chromium\\/tools' | |
| 223 '\\/([a-z0-9\\-_]+)\\.git' + branch, | |
| 224 ], | 214 ], |
| 225 project_bases_verifier.project_bases) | 215 project_bases_verifier.project_bases) |
| 226 self.assertEqual({}, mapping) | 216 self.assertEqual({}, mapping) |
| 227 | 217 |
| 228 | 218 |
| 229 class ChromiumStateLoad(TestCase): | 219 class ChromiumStateLoad(TestCase): |
| 230 # Load a complete state and ensure the code is reacting properly. | 220 # Load a complete state and ensure the code is reacting properly. |
| 231 def setUp(self): | 221 def setUp(self): |
| 232 super(ChromiumStateLoad, self).setUp() | 222 super(ChromiumStateLoad, self).setUp() |
| 233 self.buildbot = mocks.BuildbotMock(self) | 223 self.buildbot = mocks.BuildbotMock(self) |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 self.context.status.check_names(['initial', 'why not', 'why not', | 498 self.context.status.check_names(['initial', 'why not', 'why not', |
| 509 'why not', 'commit']) | 499 'why not', 'commit']) |
| 510 | 500 |
| 511 | 501 |
| 512 | 502 |
| 513 if __name__ == '__main__': | 503 if __name__ == '__main__': |
| 514 logging.basicConfig( | 504 logging.basicConfig( |
| 515 level=logging.DEBUG if '-v' in sys.argv else logging.WARNING, | 505 level=logging.DEBUG if '-v' in sys.argv else logging.WARNING, |
| 516 format='%(levelname)5s %(module)15s(%(lineno)3d): %(message)s') | 506 format='%(levelname)5s %(module)15s(%(lineno)3d): %(message)s') |
| 517 unittest.main() | 507 unittest.main() |
| OLD | NEW |