]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/082: filter out project quota status
authorTheodore Ts'o <tytso@mit.edu>
Tue, 5 Apr 2016 01:49:34 +0000 (11:49 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 01:49:34 +0000 (11:49 +1000)
In the most recent quota tools package, with the new project quota
support, quotaon -p prints an extra line which generic/082.out isn't
expecting.  So filter it out.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/082

index ca77c25e1f5a1ed7f29861fb35602b6a17a8a050..a727c10623d2de1cb41fd828202342a91bb2d916 100755 (executable)
@@ -36,6 +36,11 @@ _cleanup()
        rm -f $tmp.*
 }
 
+_filter_project_quota()
+{
+    grep -v "^project quota on"
+}
+
 # get standard environment, filters and checks
 . ./common/rc
 . ./common/filter
@@ -64,7 +69,7 @@ quotaon $SCRATCH_MNT >>$seqres.full 2>&1
 # just ignored, but quota is still on. This may change in future, let's
 # re-consider the case then.
 _scratch_mount "-o remount,ro,nosuchopt" >>$seqres.full 2>&1
-quotaon -p $SCRATCH_MNT | _filter_scratch
+quotaon -p $SCRATCH_MNT | _filter_scratch | _filter_project_quota
 # second remount should succeed, no oops or hang expected
 _scratch_mount "-o remount,ro" || _fail "second remount,ro failed"