mirror of https://github.com/ARMmbed/mbed-os.git
Cppcheck command execution fixes
parent
d05f4fc6cf
commit
4c738929a4
|
@ -290,14 +290,14 @@ def static_analysis_scan(target, toolchain_name, CPPCHECK_CMD, CPPCHECK_MSG_FORM
|
||||||
tmp_file.close()
|
tmp_file.close()
|
||||||
check_cmd += " --file-list=%s"% tmp_file.name
|
check_cmd += " --file-list=%s"% tmp_file.name
|
||||||
|
|
||||||
stdout, stderr, rc = run_cmd(check_cmd)
|
stdout, stderr, rc = run_cmd(check_cmd.split())
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print stdout
|
print stdout
|
||||||
print stderr
|
print stderr
|
||||||
|
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
|
|
||||||
# MBED
|
# MBED
|
||||||
toolchain.info(">>> STATIC ANALYSIS FOR %s (%s, %s)" % ('MBED', target.name, toolchain_name))
|
toolchain.info(">>> STATIC ANALYSIS FOR %s (%s, %s)" % ('MBED', target.name, toolchain_name))
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@ def static_analysis_scan(target, toolchain_name, CPPCHECK_CMD, CPPCHECK_MSG_FORM
|
||||||
tmp_file.close()
|
tmp_file.close()
|
||||||
check_cmd += " --file-list=%s"% tmp_file.name
|
check_cmd += " --file-list=%s"% tmp_file.name
|
||||||
|
|
||||||
stdout, stderr, rc = run_cmd(check_cmd)
|
stdout, stderr, rc = run_cmd(check_cmd.split())
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print stdout
|
print stdout
|
||||||
|
@ -435,7 +435,7 @@ def static_analysis_scan_library(src_paths, build_path, target, toolchain_name,
|
||||||
tmp_file.close()
|
tmp_file.close()
|
||||||
check_cmd += " --file-list=%s"% tmp_file.name
|
check_cmd += " --file-list=%s"% tmp_file.name
|
||||||
|
|
||||||
stdout, stderr, rc = run_cmd(check_cmd)
|
stdout, stderr, rc = run_cmd(check_cmd.split())
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print stdout
|
print stdout
|
||||||
|
|
Loading…
Reference in New Issue