From 1bb9853e28eb08586e9df9425b69c591a6e6fe17 Mon Sep 17 00:00:00 2001 From: Arshad Hussain Date: Fri, 10 Dec 2021 14:33:58 +0530 Subject: [PATCH] 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 --- lustre/tests/sanity-quota.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.8.3.1