From d32c76f4bf04eb2a3b8379ce713e16514446223a Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Tue, 1 Oct 2019 12:15:58 +0200 Subject: [PATCH] test: Shellcheck - correct rule: "Use '[:upper:]'" Correct shellcheck rule SC2019: Use '[:upper:]' to support accents and foreign alphabets. Signed-off-by: Maciej Wawryk Change-Id: I9fbaa22ee39d52d5d3a9397ad007b7df295b49b3 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469990 Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Karol Latecki Reviewed-by: Pawel Kaminski Tested-by: SPDK CI Jenkins --- scripts/check_format.sh | 2 +- test/common/autotest_common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 418735329..614eb2505 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -242,7 +242,7 @@ if hash shellcheck 2>/dev/null; then # This SHCK_EXCLUDE list is out "to do" and we work to fix all of this errors. SHCK_EXCLUDE="SC1001,SC1003,SC1010,\ SC1083,SC1113,SC2001,SC2002,SC2003,SC2004,SC2005,\ -SC2010,SC2012,SC2013,SC2015,SC2016,SC2018,SC2019,\ +SC2010,SC2012,SC2013,SC2015,SC2016,SC2018,\ SC2027,SC2030,SC2031,SC2034,SC2035,SC2039,SC2043,SC2044,SC2045,SC2046,\ SC2068,SC2086,SC2089,SC2090,\ SC2097,SC2098,SC2103,SC2115,SC2116,SC2119,SC2120,SC2121,SC2124,SC2126,SC2128,\ diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index c1ebf4542..7dea6d616 100644 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -541,7 +541,7 @@ function kill_stub() { function run_test() { xtrace_disable - local test_type="$(echo $1 | tr 'a-z' 'A-Z')" + local test_type="$(echo $1 | tr 'a-z' '[:upper:]')" shift echo "************************************" echo "START TEST $test_type $@"