autobuild: remove a lot of unnecessary scanbuild output
The loop was generating huge xtrace output that was hardly helpful. Change-Id: Ida683c01ec3a05674965bec972cc9f762a1f8fa0 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1053 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
a9c79c3337
commit
15a3067b78
@ -57,12 +57,14 @@ function make_fail_cleanup {
|
||||
function scanbuild_make {
|
||||
pass=true
|
||||
$scanbuild $MAKE $MAKEFLAGS > $out/build_output.txt && rm -rf $out/scan-build-tmp || make_fail_cleanup
|
||||
xtrace_disable
|
||||
for ent in $(find app examples lib module -type f | grep -vF ".h"); do
|
||||
if [[ $ent == lib/env_ocf* ]]; then continue; fi
|
||||
if file -bi $ent | grep -q 'text/x-c'; then
|
||||
echo $ent | sed 's/\.cp\{0,2\}$//g' >> $out/all_c_files.txt
|
||||
fi
|
||||
done
|
||||
xtrace_restore
|
||||
|
||||
grep -E "CC|CXX" $out/build_output.txt | sed 's/\s\s\(CC\|CXX\)\s//g' | sed 's/\.o//g' > $out/built_c_files.txt
|
||||
cat $rootdir/test/common/skipped_build_files.txt >> $out/built_c_files.txt
|
||||
|
Loading…
Reference in New Issue
Block a user