From 8a0a9190cd0a68a88e42210e9c3dac324319fa6d Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Wed, 6 Dec 2017 12:59:23 +0800 Subject: [PATCH] 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 --- lustre/tests/sanity-quota.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ] || { -- 1.8.3.1