Fix presubmit check for the case when cpplint fails.
BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10124006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11384 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f5caf3a77b
commit
0cfa70852a
@ -114,12 +114,15 @@ def CppLintWorker(command):
|
||||
while True:
|
||||
out_line = process.stderr.readline()
|
||||
if out_line == '' and process.poll() != None:
|
||||
if error_count == -1:
|
||||
print "Failed to process %s" % command.pop()
|
||||
return 1
|
||||
break
|
||||
m = LINT_OUTPUT_PATTERN.match(out_line)
|
||||
if m:
|
||||
out_lines += out_line
|
||||
error_count += 1
|
||||
sys.stderr.write(out_lines)
|
||||
sys.stdout.write(out_lines)
|
||||
return error_count
|
||||
except KeyboardInterrupt:
|
||||
process.kill()
|
||||
|
Loading…
Reference in New Issue
Block a user