From: Arshad Hussain Date: Fri, 10 Dec 2021 09:03:58 +0000 (+0530) Subject: LU-15358 tests: Variable incorrectly defined in sanity-quota X-Git-Tag: 2.14.57~34 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1bb9853e28eb08586e9df9425b69c591a6e6fe17;p=fs%2Flustre-release.git LU-15358 tests: Variable incorrectly defined in sanity-quota Under sanity-quota.sh local variable 'accnt_cnt' was incorrectly defined. This was exposed using shellcheck. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In ./lustre/tests/sanity-quota.sh line 3344: local accnt_cnt ^-- SC2034: accnt_cnt appears unused. Verify it or export it. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: Ib5971e7cc95b03c1f57411c6f02156ab236babcd Test-Parameters: trivial testlist=sanity-quota Signed-off-by: Arshad Hussain Reviewed-on: https://review.whamcloud.com/45820 Tested-by: jenkins Reviewed-by: James Nunez Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index f0e310b..d0d67de 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -3411,7 +3411,7 @@ test_38() { local procf="osd-$mds1_FSTYPE.$FSNAME-MDT0000" procf=${procf}.quota_slave.acct_user - local accnt_cnt + local acct_cnt acct_cnt=$(do_facet mds1 $LCTL get_param $procf | grep "id:" | \ awk '{if ($3 < 10000) {print $3}}' | wc -l)