Whamcloud - gitweb
LU-15626 tests: Fix "error" reported by shellcheck 11/46811/5
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Sat, 12 Mar 2022 06:14:20 +0000 (11:44 +0530)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Nov 2022 07:10:14 +0000 (07:10 +0000)
This patch fixes "error" issues reported by shellcheck
for *.sh files. These files had only single error
reported by shellcheck. The change in these files are
init_test_env $@ (->to->) init_test_env "$@"

Test-Parameters: trivial
Test-Parameters: testlist=dom-performance,scrub-performance
Test-Parameters: testlist=replay-single,replay-ost-single,replay-vbr
Test-Parameters: testlist=sanity-pcc,sanity-pfl,sanity-selinux
Test-Parameters: testlist=sanity-benchmark,parallel-scale
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I21fc2f25eb67d724b9e30c586568d2501648a80a
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/46811
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sarah Liu <sarah@whamcloud.com>
39 files changed:
lustre/tests/dne_sanity.sh
lustre/tests/dom-performance.sh
lustre/tests/insanity.sh
lustre/tests/large-lun.sh
lustre/tests/lfsck-performance.sh
lustre/tests/llmount.sh
lustre/tests/llmountcleanup.sh
lustre/tests/lustre-rsync-test.sh
lustre/tests/mds-survey.sh
lustre/tests/mdsrate-create-large.sh
lustre/tests/mdsrate-create-small.sh
lustre/tests/mdsrate-lookup-10dirs.sh
lustre/tests/mdsrate-lookup-1dir.sh
lustre/tests/mdsrate-stat-large.sh
lustre/tests/mdsrate-stat-small.sh
lustre/tests/metadata-updates.sh
lustre/tests/mmp.sh
lustre/tests/obdfilter-survey.sh
lustre/tests/oos.sh
lustre/tests/ost-pools.sh
lustre/tests/parallel-scale-cifs.sh
lustre/tests/parallel-scale-nfs.sh
lustre/tests/parallel-scale-nfsv3.sh
lustre/tests/parallel-scale-nfsv4.sh
lustre/tests/parallel-scale.sh
lustre/tests/performance-sanity.sh
lustre/tests/posix.sh
lustre/tests/replay-ost-single.sh
lustre/tests/replay-single-lmv.sh
lustre/tests/replay-single.sh
lustre/tests/replay-vbr.sh
lustre/tests/run-llog.sh
lustre/tests/sanity-benchmark.sh
lustre/tests/sanity-lsnapshot.sh
lustre/tests/sanity-pcc.sh
lustre/tests/sanity-pfl.sh
lustre/tests/sanity-selinux.sh
lustre/tests/scrub-performance.sh
lustre/tests/sgpdd-survey.sh

index 7a18b9d..d41d882 100644 (file)
@@ -9,7 +9,7 @@ SRCDIR=$(dirname $0)
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$DNE_SANITY_EXCEPT "
index db28ae5..f113506 100644 (file)
@@ -10,7 +10,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$DOM_PERFORMANCE_EXCEPT"
index 917c23c..f5813a9 100755 (executable)
@@ -6,7 +6,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 # bug number for skipped test:
index d2e6244..2c617a3 100644 (file)
@@ -7,7 +7,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$LARGE_LUN_EXCEPT"
index dbbf3fe..131ace6 100644 (file)
@@ -6,7 +6,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$LFSCK_PERFORMANCE_EXCEPT"
index 1ecb983..f87b189 100755 (executable)
@@ -2,7 +2,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 [ -n "$LOAD" ] && load_modules && exit 0
 [ -z "$NOFORMAT" ] && formatall
index 454ed6e..e37e711 100755 (executable)
@@ -2,6 +2,6 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 cleanupall -f
index aeda8e3..06c3a21 100644 (file)
@@ -13,7 +13,7 @@ ORIG_PWD=${PWD}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$LRSYNC_EXCEPT "
index 93715b2..f879d97 100644 (file)
@@ -3,7 +3,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$MDS_SURVEY_EXCEPT "
index 5eadc47..9b259a4 100644 (file)
@@ -4,7 +4,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 assert_env CLIENTS MDSRATE SINGLECLIENT MPIRUN
 
index bea656f..0a4ef84 100644 (file)
@@ -4,7 +4,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 assert_env CLIENTS MDSRATE SINGLECLIENT MPIRUN
 
index 2d235ff..f4c2f5c 100644 (file)
@@ -12,7 +12,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 assert_env CLIENTS MDSRATE SINGLECLIENT MPIRUN
 
index ea73dc9..e5dba3a 100644 (file)
@@ -11,7 +11,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 assert_env CLIENTS MDSRATE SINGLECLIENT MPIRUN
 
index 02625bc..78a4a01 100644 (file)
@@ -12,7 +12,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 assert_env CLIENTS MDSRATE SINGLECLIENT MPIRUN
 
index f2ab39c..f789520 100644 (file)
@@ -12,7 +12,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 assert_env CLIENTS MDSRATE SINGLECLIENT MPIRUN
 
index 86ae8db..ba4f283 100755 (executable)
@@ -10,7 +10,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 #Bug number for skipped test:
index a4997ed..bcafc18 100755 (executable)
@@ -12,7 +12,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 # bug number for skipped test:
index 059694e..1abd640 100644 (file)
@@ -3,7 +3,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 # bug number for skipped test:
index 504f2fe..fb353e6 100755 (executable)
@@ -4,7 +4,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 MOUNT=${MOUNT:-$1}
 MOUNT=${MOUNT:-/mnt/lustre}
index fb83be6..5796c27 100755 (executable)
@@ -9,7 +9,7 @@ ORIG_PWD=${PWD}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$OST_POOLS_EXCEPT"
index ed88c28..d74ac32 100644 (file)
@@ -15,7 +15,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 . $LUSTRE/tests/setup-cifs.sh
index 7f426ee..34ca53e 100755 (executable)
@@ -6,7 +6,7 @@ LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
 # only call init_test_env if this script is called directly
 if [[ -z "$TESTSUITE" || "$TESTSUITE" = "$(basename $0 .sh)" ]]; then
-       init_test_env $@
+       init_test_env "$@"
 else
        . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
 
index 014d2cd..ea8f5ff 100755 (executable)
@@ -2,6 +2,6 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 sh $LUSTRE/tests/parallel-scale-nfs.sh 3
index 14ee9d6..ccb44bb 100755 (executable)
@@ -2,6 +2,6 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 sh $LUSTRE/tests/parallel-scale-nfs.sh 4
index c82a302..28da3f2 100644 (file)
@@ -2,7 +2,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$PARALLEL_SCALE_EXCEPT "
index c4004ff..f7c2fa8 100644 (file)
@@ -6,7 +6,7 @@ LOG=${LOG:-"$TMP/${TESTNAME}.log"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$PERFORMANCE_SANITY_EXCEPT "
index 58ef6a3..0b8ba61 100755 (executable)
@@ -5,7 +5,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$POSIX_EXCEPT"
index e6ba4d0..5cb0369 100755 (executable)
@@ -4,7 +4,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 # bug number for skipped test:
index 63ec67a..8b88f07 100755 (executable)
@@ -4,7 +4,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 # bug number for skipped test:
 ALWAYS_EXCEPT="REPLAY_SINGLE_LMV_EXCEPT "
index 47989b8..11176e8 100755 (executable)
@@ -4,7 +4,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$REPLAY_SINGLE_EXCEPT "
index 2c785c4..f85f96a 100755 (executable)
@@ -6,7 +6,7 @@ MOUNT_2=${MOUNT_2:-"yes"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 remote_mds_nodsh && log "SKIP: remote MDS with nodsh" && exit 0
index abe5075..3f9ee4c 100644 (file)
@@ -2,7 +2,7 @@
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 
 TMP=${TMP:-/tmp}
 
index 35a58fc..532576c 100644 (file)
@@ -10,7 +10,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$SANITY_BENCHMARK_EXCEPT"
index ef5b30e..233c9aa 100755 (executable)
@@ -10,7 +10,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$SANITY_LSNAPSHOT_EXCEPT "
index 30ca063..a1b1072 100644 (file)
@@ -22,7 +22,7 @@ HSMTOOL_ARCHIVE_FORMAT=v1
 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
 
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
 init_logging
 
index 81d25da..0d49ea6 100644 (file)
@@ -8,7 +8,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 # bug number for skipped test:
index 90b5b9c..4427a2e 100755 (executable)
@@ -18,7 +18,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$SANITY_SELINUX_EXCEPT"
index 00e38cb..75f521c 100644 (file)
@@ -6,7 +6,7 @@ ONLY=${ONLY:-"$*"}
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$SCRUB_PERFORMANCE_EXCEPT"
index b2c1e23..0cdc0ca 100644 (file)
@@ -4,7 +4,7 @@ set -e
 
 LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
-init_test_env $@
+init_test_env "$@"
 init_logging
 
 ALWAYS_EXCEPT="$SGPDD_SURVEY_EXCEPT"