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 <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Alex Elder
2010-01-19 14:26:16 -06:00
committed by Eric Sandeen
parent d768aee6d6
commit 8213960867
+2 -1
View File
@@ -85,7 +85,8 @@ test_accounting()
$here/src/lstat64 $file | head -3 | filter_scratch $here/src/lstat64 $file | head -3 | filter_scratch
done 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 # real QA test starts here