From b854d558060e8a83a81328bea062a31eb3fe907d Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Tue, 8 Oct 2019 11:05:30 +0200 Subject: [PATCH] test: Shellcheck - correct rule: Use ./*glob* Correct shellcheck rule SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options. Signed-off-by: Maciej Wawryk Change-Id: If41cc6c4571b78ab7533a8156239bc879fab0216 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470731 Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins --- scripts/check_format.sh | 2 +- test/bdev/blockdev.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 25023cd55..8c2b8c0b1 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,\ -SC2034,SC2035,SC2039,SC2043,SC2044,SC2045,SC2046,\ +SC2034,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/bdev/blockdev.sh b/test/bdev/blockdev.sh index 59c76e0ae..0f8e56e41 100755 --- a/test/bdev/blockdev.sh +++ b/test/bdev/blockdev.sh @@ -131,7 +131,7 @@ if [ -d /usr/src/fio ]; then run_fio --spdk_conf=./test/bdev/bdev.conf --spdk_mem=$PRE_RESERVED_MEM --output=$output_dir/blockdev_fio_verify.txt - rm -f *.state + rm -f ./*.state rm -f $testdir/bdev.fio timing_exit fio_rw_verify @@ -144,7 +144,7 @@ if [ -d /usr/src/fio ]; then run_fio --spdk_conf=./test/bdev/bdev.conf --output=$output_dir/blockdev_trim.txt - rm -f *.state + rm -f ./*.state rm -f $testdir/bdev.fio timing_exit fio_trim report_test_completion "bdev_fio"