From a3f1ce15899d70dc4acb15276814fe973093df28 Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Wed, 2 Oct 2019 08:41:07 +0200 Subject: [PATCH] test: Shellcheck - correct rule: "Use '[:lower:]'" Correct shellcheck rule SC2018: Use '[:lower:]' to support accents and foreign alphabets. Signed-off-by: Maciej Wawryk Change-Id: If11d20a36419366adafc19f173ebbec60b2bea77 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470109 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 614eb2505..ae2426947 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,\ +SC2010,SC2012,SC2013,SC2015,SC2016,\ 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 7dea6d616..a4d2d1987 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' '[:upper:]')" + local test_type="$(echo $1 | tr '[:lower:]' '[:upper:]')" shift echo "************************************" echo "START TEST $test_type $@"