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.57~3 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F30730%2F3;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. Change-Id: I12e7936c0c1abc2dcaad7646a048c98bb37de254 Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/30730 Reviewed-by: James Nunez Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index b27702d..524ceae 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2736,7 +2736,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 ] || {