Cppcheck command execution fixes

pull/353/head
Przemek Wirkus 2014-06-11 15:07:38 +01:00
parent d05f4fc6cf
commit 4c738929a4
1 changed files with 4 additions and 4 deletions

View File

@ -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