From 1db9e184e7c717baddd379186ff5415102222826 Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Mon, 7 Oct 2019 13:06:21 +0200 Subject: [PATCH] test: Shellcheck - correct rule: surrounding quotes actually unquote this Correct shellcheck rule SC2027: The surrounding quotes actually unquote this. Remove or escape them. Signed-off-by: Maciej Wawryk Change-Id: Ib17ee98920790da6aa1c8e02abc58c9365bb0e91 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470634 Tested-by: SPDK CI Jenkins Reviewed-by: Karol Latecki Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- scripts/check_format.sh | 2 +- test/common/autotest_common.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 519ca15db..6acdf3f74 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -243,7 +243,7 @@ if hash shellcheck 2>/dev/null; then SHCK_EXCLUDE="SC1001,SC1003,SC1010,\ SC1083,SC1113,SC2001,SC2002,SC2003,SC2004,SC2005,\ SC2010,SC2012,SC2013,SC2016,\ -SC2027,SC2030,SC2031,SC2034,SC2035,SC2039,SC2043,SC2044,SC2045,SC2046,\ +SC2030,SC2031,SC2034,SC2035,SC2039,SC2043,SC2044,SC2045,SC2046,\ SC2068,SC2086,SC2089,SC2090,\ SC2097,SC2098,SC2103,SC2115,SC2116,SC2119,SC2120,SC2121,SC2124,SC2126,SC2128,\ SC2129,SC2140,SC2142,SC2143,SC2145,SC2146,SC2148,SC2152,SC2153,SC2154,SC2155,\ diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index a4d2d1987..fdb0a176f 100644 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -779,7 +779,7 @@ function fio_bdev() # Preload AddressSanitizer library to fio if fio_plugin was compiled with it local asan_lib=$(ldd $bdev_plugin | grep libasan | awk '{print $3}') - LD_PRELOAD=""$asan_lib" "$bdev_plugin"" "$fio_dir"/fio "$@" + LD_PRELOAD="$asan_lib $bdev_plugin" "$fio_dir"/fio "$@" } function fio_nvme() @@ -791,7 +791,7 @@ function fio_nvme() # Preload AddressSanitizer library to fio if fio_plugin was compiled with it asan_lib=$(ldd $nvme_plugin | grep libasan | awk '{print $3}') - LD_PRELOAD=""$asan_lib" "$nvme_plugin"" "$fio_dir"/fio "$@" + LD_PRELOAD="$asan_lib $nvme_plugin" "$fio_dir"/fio "$@" } function get_lvs_free_mb()