xfstests: 219: fix awk filter for duplicate users
authorAlex Elder <aelder@sgi.com>
Wed, 3 Feb 2010 19:54:04 +0000 (19:54 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 12 Feb 2010 20:47:18 +0000 (14:47 -0600)
The filter I added for removing duplicate users from the
output of repquota didn't do the job very well.  This
fixes that, making it so the first time a user is seen
its line is printed, not thereafter.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
219

diff --git a/219 b/219
index 6b42a1ece54c1a5d135b1cba6c2035a557985717..e18418065f52b72a74c3d1c89fec08941df2ff7d 100755 (executable)
--- a/219
+++ b/219
@@ -86,7 +86,7 @@ test_accounting()
        done
 
        repquota -$type -s -n $SCRATCH_MNT  | grep -v "^#0" | filter_scratch |
-       awk '/^#/ { if (! seen[$1]) { seen[$1]++; next; } } { print }'
+       awk '/^#/ { if (seen[$1]) next; seen[$1]++; } } { print; }'
 }
 
 # real QA test starts here