Chromium Code Reviews| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 '^https?\\:\\/\\/git\\.chromium\\.org\\/git\\/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 '^https?\\:\\/\\/chromium\\.googlesource\\.com\\/chromium\\/tools' | 212 '^https?\\:\\/\\/chromium\\.googlesource\\.com\\/chromium\\/tools' |
| 213 '\\/([a-z0-9\\-_]+)(?:\\.git)?' + branch, | 213 '\\/([a-z0-9\\-_]+)(?:\\.git)?' + branch, |
| 214 '^https?\\:\\/\\/chromium\\.googlesource\\.com\\/a\\/chromium\\/' | |
| 215 'tools\\/([a-z0-9\\-_]+)(?:\\.git)?' + branch, | |
|
iannucci
2013/09/13 00:42:46
blaaarrrrr regex!!!
| |
| 214 ], | 216 ], |
| 215 project_bases_verifier.project_bases) | 217 project_bases_verifier.project_bases) |
| 216 self.assertEqual({}, mapping) | 218 self.assertEqual({}, mapping) |
| 217 | 219 |
| 218 | 220 |
| 219 class ChromiumStateLoad(TestCase): | 221 class ChromiumStateLoad(TestCase): |
| 220 # Load a complete state and ensure the code is reacting properly. | 222 # Load a complete state and ensure the code is reacting properly. |
| 221 def setUp(self): | 223 def setUp(self): |
| 222 super(ChromiumStateLoad, self).setUp() | 224 super(ChromiumStateLoad, self).setUp() |
| 223 self.buildbot = mocks.BuildbotMock(self) | 225 self.buildbot = mocks.BuildbotMock(self) |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 498 self.context.status.check_names(['initial', 'why not', 'why not', | 500 self.context.status.check_names(['initial', 'why not', 'why not', |
| 499 'why not', 'commit']) | 501 'why not', 'commit']) |
| 500 | 502 |
| 501 | 503 |
| 502 | 504 |
| 503 if __name__ == '__main__': | 505 if __name__ == '__main__': |
| 504 logging.basicConfig( | 506 logging.basicConfig( |
| 505 level=logging.DEBUG if '-v' in sys.argv else logging.WARNING, | 507 level=logging.DEBUG if '-v' in sys.argv else logging.WARNING, |
| 506 format='%(levelname)5s %(module)15s(%(lineno)3d): %(message)s') | 508 format='%(levelname)5s %(module)15s(%(lineno)3d): %(message)s') |
| 507 unittest.main() | 509 unittest.main() |
| OLD | NEW |