From: Alex Elder Date: Tue, 19 Jan 2010 20:26:16 +0000 (-0600) Subject: xfstests 219: ignore duplicates reported by repquota X-Git-Tag: v1.1.0~225 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8213960867bf318b58cf776a1fde775e0cab5c55;p=xfstests-dev.git xfstests 219: ignore duplicates reported by repquota Arrange to ignore duplicate entries reported by the repquota command. This can happen if an id is used more than once (such as when two user names are assigned the same uid). Do this here by simply dropping any reported entries whose id number has already been seen in the output. Signed-off-by: Alex Elder Reviewed-by: Christoph Hellwig --- diff --git a/219 b/219 index 9d79d5c5..e278c1cb 100755 --- a/219 +++ b/219 @@ -85,7 +85,8 @@ test_accounting() $here/src/lstat64 $file | head -3 | filter_scratch done - repquota -$type -s -n $SCRATCH_MNT | grep -v "^#0" | filter_scratch + repquota -$type -s -n $SCRATCH_MNT | grep -v "^#0" | filter_scratch | + awk '/^#/ { if (! seen[$1]) { seen[$1]++; next; } } { print }' } # real QA test starts here