mirror of https://github.com/ARMmbed/mbed-os.git
cppcheck cmd call bugfixes
parent
4c738929a4
commit
43ef069310
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue