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

Side by Side Diff: tests/project_test.py

Issue 23523056: Add support for chromium.googlesource.com/a/chromium... to the CQ. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/commit-queue@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « projects.py ('k') | no next file » | 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) 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
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
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()
OLDNEW
« no previous file with comments | « projects.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698