From e1f6fd0f095193e3e8fae9e6e5fdc2d4bf4c2af7 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Fri, 13 Mar 2020 11:52:09 -0700 Subject: [PATCH] Revert "test/build: add test directory to scanbuild verification" This reverts commit 606ba0c3219971a8c7df4921115f52fa2d243579. Change-Id: Ibdc797e4c7e4ea9c60e070487027a069007dcf98 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1265 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- autobuild.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index b6980b60f..c285817f9 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -58,11 +58,9 @@ 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 test -type f | grep -vF ".h"); do + for ent in $(find app examples lib module -type f | grep -vF ".h"); do if [[ $ent == lib/env_ocf* ]]; then continue; fi if [[ SPDK_RUN_FUNCTIONAL_TEST -eq 0 && $ent == examples* ]]; then continue; fi - if [[ SPDK_RUN_FUNCTIONAL_TEST -eq 0 && $ent == test* && $end != test/unit* ]]; then continue; fi - if [[ SPDK_TEST_UNITTEST -eq 0 && $end == test/unit* ]]; 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