Whamcloud - gitweb
LU-15358 tests: Variable incorrectly defined in sanity-quota 20/45820/2
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Fri, 10 Dec 2021 09:03:58 +0000 (14:33 +0530)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Jan 2022 06:19:30 +0000 (06:19 +0000)
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 <arshad.hussain@aeoncomputing.com>
Reviewed-on: https://review.whamcloud.com/45820
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-quota.sh

index f0e310b..d0d67de 100755 (executable)
@@ -3411,7 +3411,7 @@ test_38() {
 
        local procf="osd-$mds1_FSTYPE.$FSNAME-MDT0000"
        procf=${procf}.quota_slave.acct_user
 
        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)
 
        acct_cnt=$(do_facet mds1 $LCTL get_param $procf | grep "id:" | \
                   awk '{if ($3 < 10000) {print $3}}' | wc -l)