autobuild.sh: delete scanbuild output files before the build
"all_c_files.txt" had output always appended, not overwritten. This caused autobuild.sh to fail if next builds had different configuration. Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: I9ba52d7f5a71d79a269c962e6c38c2a7d48f294c Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1652 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Seth Howell <seth.howell@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
454ff1726b
commit
6d1bb438bf
@ -58,6 +58,8 @@ function scanbuild_make {
|
|||||||
pass=true
|
pass=true
|
||||||
$scanbuild $MAKE $MAKEFLAGS > $out/build_output.txt && rm -rf $out/scan-build-tmp || make_fail_cleanup
|
$scanbuild $MAKE $MAKEFLAGS > $out/build_output.txt && rm -rf $out/scan-build-tmp || make_fail_cleanup
|
||||||
xtrace_disable
|
xtrace_disable
|
||||||
|
|
||||||
|
rm -f $out/*files.txt
|
||||||
for ent in $(find app examples lib module test -type f | grep -vF ".h"); do
|
for ent in $(find app examples lib module test -type f | grep -vF ".h"); do
|
||||||
if [[ $ent == lib/env_ocf* ]]; then continue; fi
|
if [[ $ent == lib/env_ocf* ]]; then continue; fi
|
||||||
if file -bi $ent | grep -q 'text/x-c'; then
|
if file -bi $ent | grep -q 'text/x-c'; then
|
||||||
|
Loading…
Reference in New Issue
Block a user