mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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>
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ _cleanup()
|
||||
|
||||
getfattr()
|
||||
{
|
||||
$GETFATTR_PROG --absolute-names "$@" |& _filter_test_dir
|
||||
_getfattr --absolute-names "$@" |& _filter_test_dir
|
||||
}
|
||||
|
||||
setfattr()
|
||||
|
||||
Reference in New Issue
Block a user