test: Shellcheck - apply rule SC2209
Use var=$(command) to assign output (or quote to assign string). Change-Id: I4067db46697c32f24e0b4df7d573929ee75757a7 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467291 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
ee3403b5ee
commit
38d4a2a2f2
@ -247,7 +247,7 @@ SC2059,SC2068,SC2074,SC2086,SC2088,SC2089,SC2090,SC2091,SC2094,\
|
||||
SC2097,SC2098,SC2103,SC2115,SC2116,SC2119,SC2120,SC2121,SC2124,SC2126,SC2128,\
|
||||
SC2129,SC2140,SC2142,SC2143,SC2145,SC2146,SC2148,SC2152,SC2153,SC2154,SC2155,\
|
||||
SC2162,SC2164,SC2165,SC2166,SC2167,SC2174,SC2178,SC2181,SC2191,SC2192,SC2195,\
|
||||
SC2199,SC2206,SC2207,SC2209,SC2214,SC2223,SC2230,SC2231,SC2235"
|
||||
SC2199,SC2206,SC2207,SC2214,SC2223,SC2230,SC2231,SC2235"
|
||||
# SPDK fails some error checks which have been deprecated in later versions of shellcheck.
|
||||
# We will not try to fix these error checks, but instead just leave the error types here
|
||||
# so that we can still run with older versions of shellcheck.
|
||||
|
@ -108,7 +108,7 @@ if [ $SPDK_RUN_VALGRIND -eq 0 ]; then
|
||||
fi
|
||||
|
||||
if [ "$(uname -s)" = "Linux" ]; then
|
||||
MAKE=make
|
||||
MAKE="make"
|
||||
MAKEFLAGS=${MAKEFLAGS:--j$(nproc)}
|
||||
DPDK_LINUX_DIR=/usr/share/dpdk/x86_64-default-linuxapp-gcc
|
||||
if [ -d $DPDK_LINUX_DIR ] && [ $SPDK_RUN_INSTALLED_DPDK -eq 1 ]; then
|
||||
@ -117,7 +117,7 @@ if [ "$(uname -s)" = "Linux" ]; then
|
||||
# Override the default HUGEMEM in scripts/setup.sh to allocate 8GB in hugepages.
|
||||
export HUGEMEM=8192
|
||||
elif [ "$(uname -s)" = "FreeBSD" ]; then
|
||||
MAKE=gmake
|
||||
MAKE="gmake"
|
||||
MAKEFLAGS=${MAKEFLAGS:--j$(sysctl -a | grep -E -i 'hw.ncpu' | awk '{print $2}')}
|
||||
DPDK_FREEBSD_DIR=/usr/local/share/dpdk/x86_64-native-bsdapp-clang
|
||||
if [ -d $DPDK_FREEBSD_DIR ] && [ $SPDK_RUN_INSTALLED_DPDK -eq 1 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user