]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/quota: sort lines of repquota output
authorZorro Lang <zlang@redhat.com>
Sun, 20 May 2018 16:22:02 +0000 (00:22 +0800)
committerEryu Guan <guaneryu@gmail.com>
Mon, 21 May 2018 08:40:54 +0000 (16:40 +0800)
commit4b246619a492546403b43ea76a32d471ac346887
tree35c6ff75042f2ce5a6ebc493c39ad24f0fb5c21c
parent8a8be5f0aba9fe166663665eb41a67bb929356a4
common/quota: sort lines of repquota output

The golden image of some cases (e.g: generic/305 generic/326
generic/327 generic/328 xfs/214 xfs/330 and xfs/440) depend on the
output of repquota() function.

When it reports multi-users, we can't control the order of lines,
then always hit failures likes:

  ...
   Create the original files
  -root 3072 0 0
   nobody 0 0 0
   fsgqa 0 0 0
  +root 3072 0 0
  ...

So sort the lines to make sure it won't break the golden image.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/quota
tests/xfs/330