diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 2e451344a..22e58ae64 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -480,17 +480,19 @@ function check_bash_static_analysis() { # SC2086: Double quote to prevent globbing and word splitting. # SC2119: Use foo "$@" if function's $1 should mean script's $1. # SC2120: foo references arguments, but none are ever passed. + # SC2128: Expanding an array without an index only gives the first element. # SC2148: Add shebang to the top of your script. # SC2153: Possible Misspelling: MYVARIABLE may not be assigned, but MY_VARIABLE is. # SC2154: var is referenced but not assigned. # SC2164: Use cd ... || exit in case cd fails. # SC2174: When used with -p, -m only applies to the deepest directory. + # SC2178: Variable was used as an array but is now assigned a string. # SC2206: Quote to prevent word splitting/globbing, # or split robustly with mapfile or read -a. # SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting). # SC2223: This default assignment may cause DoS due to globbing. Quote it. SHCK_EXCLUDE="$SHCK_EXCLUDE,SC1083,SC1090,SC1091,SC2010,SC2015,SC2016,SC2034,SC2046,SC2086,\ -SC2119,SC2120,SC2148,SC2153,SC2154,SC2164,SC2174,SC2001,SC2206,SC2207,SC2223" +SC2119,SC2120,SC2128,SC2148,SC2153,SC2154,SC2164,SC2174,SC2178,SC2001,SC2206,SC2207,SC2223" SHCK_FORMAT="tty" SHCK_APPLY=false diff --git a/test/dpdk_memory_utility/test_dpdk_mem_info.sh b/test/dpdk_memory_utility/test_dpdk_mem_info.sh index e49094635..59bea5314 100755 --- a/test/dpdk_memory_utility/test_dpdk_mem_info.sh +++ b/test/dpdk_memory_utility/test_dpdk_mem_info.sh @@ -5,10 +5,9 @@ rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh rpc_py="$rootdir/scripts/rpc.py" -SPDK_APP="$SPDK_BIN_DIR/spdk_tgt" MEM_SCRIPT="$rootdir/scripts/dpdk_mem_info.py" -$SPDK_APP & +"${SPDK_APP[@]}" & spdkpid=$! waitforlisten $spdkpid