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>
This commit is contained in:
Zorro Lang
2018-05-21 00:22:02 +08:00
committed by Eryu Guan
parent 8a8be5f0ab
commit 4b246619a4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ _require_nobody
do_repquota()
{
repquota $SCRATCH_MNT | egrep '^(fsgqa|root|nobody)'
repquota $SCRATCH_MNT | egrep '^(fsgqa|root|nobody)' | sort -r
}
rm -f "$seqres.full"