@ -815,13 +815,15 @@ def CheckChangeOnCommit(input_api, output_api):
output = presubmit . DoPresubmitChecks (
output = presubmit . DoPresubmitChecks (
change , False , True , None , input_buf , DEFAULT_SCRIPT , False , None )
change , False , True , None , input_buf , DEFAULT_SCRIPT , False , None )
self . failIf ( output . should_continue ( ) )
self . failIf ( output . should_continue ( ) )
text = ( ' Running presubmit upload checks ... \n '
text = (
' Running presubmit upload checks ... \n '
' Warning, no PRESUBMIT.py found. \n '
' Warning, no PRESUBMIT.py found. \n '
' Running default presubmit script. \n '
' Running default presubmit script. \n '
' \n '
' \n '
' ** Presubmit ERRORS ** \n !! \n \n '
' ** Presubmit ERRORS ** \n !! \n \n '
' Was the presubmit check useful? Please send feedback & hate mail '
' Was the presubmit check useful? If not, run " git cl presubmit -v " \n '
' to maruel@chromium.org! \n ' )
' to figure out which PRESUBMIT.py was run, then run git blame \n '
' on the file to figure out who to ask for help. \n ' )
self . assertEquals ( output . getvalue ( ) , text )
self . assertEquals ( output . getvalue ( ) , text )
def testDirectoryHandling ( self ) :
def testDirectoryHandling ( self ) :