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

Side by Side Diff: tests/presubmit_unittest.py

Issue 11421050: Add presubmit check for dcommitted / CQed CLs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Tweaked regex to match real world result Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « presubmit_canned_checks.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 """Unit tests for presubmit_support.py and presubmit_canned_checks.py.""" 6 """Unit tests for presubmit_support.py and presubmit_canned_checks.py."""
7 7
8 # pylint: disable=E1101,E1103 8 # pylint: disable=E1101,E1103
9 9
10 import logging 10 import logging
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 'CheckChangeHasOnlyOneEol', 'CheckChangeHasNoCR', 1497 'CheckChangeHasOnlyOneEol', 'CheckChangeHasNoCR',
1498 'CheckChangeHasNoCrAndHasOnlyOneEol', 'CheckChangeHasNoTabs', 1498 'CheckChangeHasNoCrAndHasOnlyOneEol', 'CheckChangeHasNoTabs',
1499 'CheckChangeTodoHasOwner', 1499 'CheckChangeTodoHasOwner',
1500 'CheckChangeHasQaField', 'CheckChangeHasTestedField', 1500 'CheckChangeHasQaField', 'CheckChangeHasTestedField',
1501 'CheckChangeHasTestField', 1501 'CheckChangeHasTestField',
1502 'CheckChangeLintsClean', 1502 'CheckChangeLintsClean',
1503 'CheckChangeSvnEolStyle', 1503 'CheckChangeSvnEolStyle',
1504 'CheckChangeWasUploaded', 1504 'CheckChangeWasUploaded',
1505 'CheckDoNotSubmit', 1505 'CheckDoNotSubmit',
1506 'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles', 1506 'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles',
1507 'CheckChangeDescriptionNotCommitted',
1507 'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks', 1508 'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks',
1508 'CheckLicense', 1509 'CheckLicense',
1509 'CheckOwners', 1510 'CheckOwners',
1510 'CheckRietveldTryJobExecution', 1511 'CheckRietveldTryJobExecution',
1511 'CheckSingletonInHeaders', 1512 'CheckSingletonInHeaders',
1512 'CheckSvnModifiedDirectories', 1513 'CheckSvnModifiedDirectories',
1513 'CheckSvnForCommonMimeTypes', 'CheckSvnProperty', 1514 'CheckSvnForCommonMimeTypes', 'CheckSvnProperty',
1514 'RunPythonUnitTests', 'RunPylint', 1515 'RunPythonUnitTests', 'RunPylint',
1515 'RunUnitTests', 'RunUnitTestsInDirectory', 1516 'RunUnitTests', 'RunUnitTestsInDirectory',
1516 ] 1517 ]
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 owners_check=False) 2485 owners_check=False)
2485 self.assertEqual(1, len(results)) 2486 self.assertEqual(1, len(results))
2486 self.assertEqual( 2487 self.assertEqual(
2487 'Found line ending with white spaces in:', results[0]._message) 2488 'Found line ending with white spaces in:', results[0]._message)
2488 self.checkstdout('') 2489 self.checkstdout('')
2489 2490
2490 2491
2491 if __name__ == '__main__': 2492 if __name__ == '__main__':
2492 import unittest 2493 import unittest
2493 unittest.main() 2494 unittest.main()
OLDNEW
« no previous file with comments | « presubmit_canned_checks.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698