From: Hongchao Zhang Date: Wed, 6 Dec 2017 04:59:23 +0000 (+0800) Subject: LU-8999 test: ignore unrelated quota id X-Git-Tag: 2.10.4-RC1~116 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F30896%2F2;p=fs%2Flustre-release.git LU-8999 test: ignore unrelated quota id In test_38 of sanity_quota, the quota id larger than 9999 should be ignored. Lustre-change: https://review.whamcloud.com/30730 Lustre-commit: 8a0a9190cd0a68a88e42210e9c3dac324319fa6d Change-Id: I12e7936c0c1abc2dcaad7646a048c98bb37de254 Signed-off-by: Hongchao Zhang Reviewed-by: James Nunez Reviewed-by: Jian Yu Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/30896 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 73acbf0..32a92eb 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2742,7 +2742,8 @@ test_38() { procf=${procf}.quota_slave.acct_user local accnt_cnt - acct_cnt=$(do_facet mds1 $LCTL get_param $procf | grep "id:" | wc -l) + acct_cnt=$(do_facet mds1 $LCTL get_param $procf | grep "id:" | \ + awk '{if ($3 < 10000) {print $3}}' | wc -l) echo "Found $acct_cnt id entries" [ $file_cnt -eq $acct_cnt ] || {