Whamcloud - gitweb
LU-8999 test: ignore unrelated quota id 30/30730/3
authorHongchao Zhang <hongchao.zhang@intel.com>
Wed, 6 Dec 2017 04:59:23 +0000 (12:59 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 14 Jan 2018 02:38:27 +0000 (02:38 +0000)
In test_38 of sanity_quota, the quota id larger than 9999
should be ignored.

Change-Id: I12e7936c0c1abc2dcaad7646a048c98bb37de254
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: https://review.whamcloud.com/30730
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-quota.sh

index b27702d..524ceae 100755 (executable)
@@ -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 ] || {