Only print when got error for some commands.

This commit is contained in:
Cheng Zhao 2014-02-26 22:08:01 +08:00
parent 637b50044d
commit 120094a81e
4 changed files with 19 additions and 11 deletions

5
script/cpplint.py vendored
View file

@ -2,9 +2,10 @@
import fnmatch
import os
import subprocess
import sys
from lib.util import execute
IGNORE_FILES = [
os.path.join('browser', 'atom_application_mac.h'),
os.path.join('browser', 'atom_application_delegate_mac.h'),
@ -44,7 +45,7 @@ def list_files(directories, filters):
def call_cpplint(files):
cpplint = os.path.join(SOURCE_ROOT, 'vendor', 'depot_tools', 'cpplint.py')
rules = '--filter=-build/header_guard,-build/include_what_you_use'
subprocess.check_call([sys.executable, cpplint, rules] + files)
execute([sys.executable, cpplint, rules] + files)
if __name__ == '__main__':