cppcheck cmd call bugfixes

pull/353/head
Przemek Wirkus 2014-06-11 15:26:00 +01:00
parent 4c738929a4
commit 43ef069310
2 changed files with 11 additions and 14 deletions

View File

@ -290,11 +290,10 @@ def static_analysis_scan(target, toolchain_name, CPPCHECK_CMD, CPPCHECK_MSG_FORM
tmp_file.close()
check_cmd += " --file-list=%s"% tmp_file.name
stdout, stderr, rc = run_cmd(check_cmd.split())
_stdout, _stderr, _rc = run_cmd(check_cmd)
if verbose:
print stdout
print stderr
print _stdout
print _stderr
# =========================================================================
@ -352,11 +351,10 @@ def static_analysis_scan(target, toolchain_name, CPPCHECK_CMD, CPPCHECK_MSG_FORM
tmp_file.close()
check_cmd += " --file-list=%s"% tmp_file.name
stdout, stderr, rc = run_cmd(check_cmd.split())
_stdout, _stderr, _rc = run_cmd(check_cmd)
if verbose:
print stdout
print stderr
print _stdout
print _stderr
def static_analysis_scan_lib(lib_id, target, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, options=None, verbose=False, clean=False, macros=None, notify=None):
@ -435,8 +433,7 @@ def static_analysis_scan_library(src_paths, build_path, target, toolchain_name,
tmp_file.close()
check_cmd += " --file-list=%s"% tmp_file.name
stdout, stderr, rc = run_cmd(check_cmd.split())
_stdout, _stderr, _rc = run_cmd(check_cmd)
if verbose:
print stdout
print stderr
print _stdout
print _stderr

View File

@ -32,8 +32,8 @@ def cmd(l, check=True, verbose=False, shell=False, cwd=None):
def run_cmd(command, wd=None, redirect=False):
p = Popen(command, stdout=PIPE, stderr=STDOUT if redirect else PIPE, cwd=wd)
stdout, stderr = p.communicate()
return stdout, stderr, p.returncode
_stdout, _stderr = p.communicate()
return _stdout, _stderr, p.returncode
def mkdir(path):