diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 24c724c7f..8bc07d742 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -243,7 +243,7 @@ if hash shellcheck 2>/dev/null; then SHCK_EXCLUDE="SC1083,SC2002,SC2004,\ SC2010,SC2012,SC2013,SC2016,SC2034,SC2045,SC2046,SC2068,SC2086,SC2089,SC2090,\ SC2097,SC2098,SC2103,SC2115,SC2116,SC2119,SC2120,SC2121,SC2124,SC2126,SC2128,\ -SC2129,SC2140,SC2142,SC2143,SC2145,SC2148,SC2152,SC2153,SC2154,SC2155,\ +SC2129,SC2140,SC2142,SC2143,SC2148,SC2152,SC2153,SC2154,SC2155,\ SC2162,SC2164,SC2165,SC2166,SC2167,SC2174,\ SC2230" # SPDK fails some error checks which have been deprecated in later versions of shellcheck. diff --git a/scripts/setup.sh b/scripts/setup.sh index 97f55771a..46552f8aa 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -82,7 +82,7 @@ function pci_dev_echo() { local vendor="$(cat /sys/bus/pci/devices/$bdf/vendor)" local device="$(cat /sys/bus/pci/devices/$bdf/device)" shift - echo "$bdf (${vendor#0x} ${device#0x}): $@" + echo "$bdf (${vendor#0x} ${device#0x}): $*" } function linux_bind_driver() { diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index a5fb347a7..5e5e2575d 100644 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -553,13 +553,13 @@ function run_test() { local test_type="$(echo $1 | tr '[:lower:]' '[:upper:]')" shift echo "************************************" - echo "START TEST $test_type $@" + echo "START TEST $test_type $*" echo "************************************" xtrace_restore time "$@" xtrace_disable echo "************************************" - echo "END TEST $test_type $@" + echo "END TEST $test_type $*" echo "************************************" xtrace_restore } diff --git a/test/vhost/common.sh b/test/vhost/common.sh index dd0b39c2a..1b390fb90 100644 --- a/test/vhost/common.sh +++ b/test/vhost/common.sh @@ -65,7 +65,7 @@ function message() local msg_type="$1" shift - echo -e "${msg_type}${verbose_out}: $@" + echo -e "${msg_type}${verbose_out}: $*" } function fail() diff --git a/test/vhost/perf_bench/vhost_perf.sh b/test/vhost/perf_bench/vhost_perf.sh index c230b5cc6..0a4d554ca 100755 --- a/test/vhost/perf_bench/vhost_perf.sh +++ b/test/vhost/perf_bench/vhost_perf.sh @@ -183,7 +183,7 @@ else fi notice "Preparing NVMe setup..." notice "Using $max_disks physical NVMe drives" -notice "Nvme split list: ${splits[@]}" +notice "Nvme split list: ${splits[*]}" # ===== Precondition NVMes if specified ===== if [[ $run_precondition == true ]]; then diff --git a/test/vhost/readonly/delete_partition_vm.sh b/test/vhost/readonly/delete_partition_vm.sh index 0b579130e..0a68f2e75 100755 --- a/test/vhost/readonly/delete_partition_vm.sh +++ b/test/vhost/readonly/delete_partition_vm.sh @@ -11,7 +11,7 @@ test_file_name="some_test_file" function error() { echo "===========" - echo -e "ERROR: $@" + echo -e "ERROR: $*" echo "===========" trap - ERR set +e diff --git a/test/vhost/readonly/disabled_readonly_vm.sh b/test/vhost/readonly/disabled_readonly_vm.sh index c6c47d619..57956aaf0 100755 --- a/test/vhost/readonly/disabled_readonly_vm.sh +++ b/test/vhost/readonly/disabled_readonly_vm.sh @@ -11,7 +11,7 @@ test_file_name="some_test_file" function error() { echo "===========" - echo -e "ERROR: $@" + echo -e "ERROR: $*" echo "===========" trap - ERR set +e diff --git a/test/vhost/readonly/enabled_readonly_vm.sh b/test/vhost/readonly/enabled_readonly_vm.sh index c5f89ab5b..b34b7d309 100755 --- a/test/vhost/readonly/enabled_readonly_vm.sh +++ b/test/vhost/readonly/enabled_readonly_vm.sh @@ -11,7 +11,7 @@ test_file_name="some_test_file" function error() { echo "===========" - echo -e "ERROR: $@" + echo -e "ERROR: $*" echo "===========" umount "$test_folder_name" rm -rf "$testdir/$test_folder_name"