fstests: filter redundant output by getfattr
authorZorro Lang <zlang@redhat.com>
Thu, 23 Aug 2018 02:41:24 +0000 (10:41 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 26 Aug 2018 12:55:28 +0000 (20:55 +0800)
commit794f4594fbf46bb3c51ac0566058022bc28dfdfe
tree4e8fb9a0d35aa8a47e19992d0d8b890a6faefd52
parent84fdfc5d8a1c94e08245152e02679b9a5d2d3aa3
fstests: filter redundant output by getfattr

When getfattr dumps values of all extended attributes (-d option),
it doesn't print empty extended attributes. e.g: user.name. But from
attr-2.4.48 this behavior is changed,  new getfattr prints
user.name="".

The {=""} will break the golden image, so filter the redundant =""
at the end if it has.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
24 files changed:
common/attr
tests/ext4/022
tests/ext4/026
tests/generic/020
tests/generic/037
tests/generic/062
tests/generic/066
tests/generic/093
tests/generic/097
tests/generic/337
tests/generic/364
tests/generic/403
tests/generic/454
tests/generic/489
tests/overlay/011
tests/overlay/026
tests/overlay/038
tests/overlay/041
tests/overlay/046
tests/overlay/056
tests/overlay/060
tests/shared/002
tests/xfs/021
tests/xfs/187